Script Only Stack Properties

Bob Sneidar bobsneidar at iotecdigital.com
Sat Apr 4 13:27:21 EDT 2020


Hmmm… If that is the case then theoretically, on closeStack the new properties could be arrayEncoded and saved to disk, and then on openStack they could be read and then arrayDecoded and reset again.

Bob S


On Apr 4, 2020, at 10:20 AM, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com<mailto:use-livecode at lists.runrev.com>> wrote:

When a script only stack is opened, LC creates a temporary stack and plops the script into it. At that point its just like any other library stack. You could add images, controls, other scripts, custom props, anything. The only difference is that when the stack closes, the text of the stack script is written back to the file and everything else is lost.

I suppose you could put custom properties at the top of the stack script inside a comment block, and set them up normally by script when the stack opens.

--
Jacqueline Landman Gay | jacque at hyperactivesw.com<mailto:jacque at hyperactivesw.com>
HyperActive Software | http://www.hyperactivesw.com<http://www.hyperactivesw.com/>



More information about the use-livecode mailing list