How to store a stack in a custom property
Joe Lewis Wilkins
pepetoo at cox.net
Sun Apr 26 21:55:33 EDT 2009
OK, now under what circumstances might we want to store a stack in
either a Custom Property or a Var? These aren't things we'd want or
have to do in HC. At least I never did in the many hundreds of stacks
I created and used. There must be some sort of unique things that can
be done under these circumstances that cannot be done with "ordinary"
stacks, but still not having adopted CPs, they are just not obvious to
On Apr 26, 2009, at 6:41 PM, Richard Gaskin wrote:
> 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.
More information about the Use-livecode