How to store a stack in a custom property

Richard Gaskin ambassador at
Sun Apr 26 21:41:39 EDT 2009

Mark Smith wrote:

> on mouseUp
>     put the tempname into tFile
>     create invisible stack "thenewstack"
>     save stack "thenewstack" as tFile -- save to temp file
>     delete stack "thenewstack" -- clear from memory
>     set the storedStack of this stack to url ("binfile:" & tFile) --  
> store in cp
>     delete file tFile -- delete temp file
> end mouseUp

Nicely done.

If you'd like to see this in the engine:

The engine currently supports the opposite behavior (using a variable as 
a stack), so this would seem a good compliment.

  Richard Gaskin
  Fourth World
  Revolution training and consulting:
  Webzine for Rev developers:

More information about the use-livecode mailing list