stackfile_Array

This getprop is part of the lib_StackFiles library. Browse related handlers using the tags: stackfile, array, and find the getprop here on github

Handler: stackfile_Array[] OS: all Platforms: all Type: getprop

This handler makes it easy to fetch, then manipulate stackfiles as associative arrays. We save these arrays to file so that then can be loaded on startup by scriptonly stacks in order to set their stackfiles property and therefore "know" about other stacks which can then be referred to by name.

See also: - stack_IsKnown

# Todo - [x] Change Me

# Where

File: lib_StackFiles.livecodescript Hkey: G stackfile_Array Kind: library Path: libraries/lib_StackFiles.livecodescript Project: lcw Script: stack "lib_StackFiles"

# Code

getprop stackfile_Array put the defaultstack into someStack put the stackfiles of someStack into stackFileArray split stackFileArray by CR and comma return stackFileArray end stackfile_Array

setprop stackfile_Array sfArray put the defaultstack into someStack put stackFile_FromArray (sfArray) into sfTable sort sfTable by item 1 of each set the stackfiles of someStack to sfTable return sfTable end stackfile_Array

# Depends Here is a list of stacks containing dependencies upon which this handler depends: -

# See also - Fedwiki Tools