How to store a stack in a custom property

Richard Gaskin ambassador at fourthworld.com
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:
<http://quality.runrev.com/qacenter/show_bug.cgi?id=577>

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: http://www.fourthworld.com
  Webzine for Rev developers: http://www.revjournal.com



More information about the use-livecode mailing list