storing a stack as a customprop

Mark Schonewille m.schonewille at economy-x-talk.com
Sat Oct 17 20:22:23 EDT 2009


Peter,

Use binfile instead of file.

set the storedStack of stack "updateList" to URL "binfile:" & filepath

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com

Submit your software at http://www.quickestpublisher.com

On 18 okt 2009, at 01:59, Peter Brigham MD wrote:

> I'm stuck. I swear I got this to work for a few minutes and now it  
> isn't working. I changed something and broke it.
>
> I'm trying to store a stack ("stackToSave") as a customproperty of a  
> stack called "updateList". As far as I can tell the way to store a  
> currently open stack in a property is to first save it to disk and  
> use something like
>
> set the storedStack of stack "updateList" to URL "file:" & filepath
>
> First question: is this the way to approach this task?
>
> If so, then a few more details: the stack "stackToSave" is a  
> substack of a stack "myMainStack" currently open in the IDE (all of  
> this is taking place in the IDE). The stack "updateList" is not part  
> of the same stackfile. I'm thinking I have to clone the stack  
> "stackToSave" first so I can save it independently. Second question:  
> is this true?
>
> I have a script in the stack "updateList" that calls a handler  
> "storeStack":
>
> ...
> put "stackToSave" into stName
> storeStack stName
> ...




More information about the use-livecode mailing list