variable storage

Thomas McGrath III mcgrath3 at mac.com
Thu Dec 4 22:09:53 EST 2008


Scott, thanks. seems a little complicated because I wanted to do this  
with dozens of objects. So this would mean dozens of stacks. For my  
needs I think it might be better to store them all in one separate  
stack.

Tom McGrath III
Lazy River Software
3mcgrath at comcast.net

iTunes Library Suite - libITS
Information and download can be found on this page:
http://www.lazyriversoftware.com/RevOne.html


On Dec 4, 2008, at 5:09 PM, Scott Rossi wrote:

> Recently, Thomas McGrath III wrote:
>
>> Is there a way to store an object in a variable? I want to store a
>> polygon or graphic in a variable or a custom property.
>
> I don't believe you can't store the object itself, but you can store  
> the
> properties of the object and create it on the fly by setting the  
> properties
> of the template object (in this case the templateGraphic) to the  
> stored
> properties.
>
> Alternatively, you could store the object in a "holder" stack and  
> store the
> holder stack itself as binary data in a custom property of your main  
> stack.
>
> set the uBinaryStack of myCoolStack to url ("binfile:" &  
> pathToHolderStack)
>
> When the time comes to access the object you use something like:
>
> go stack (the uBinaryStack of this stack)
>
> ...to open the binary-saved stack, copy your object, and close the
> binary-saved stack.
>
> As always, Rev offers a few options...
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, Multimedia & Design
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the Use-livecode mailing list