How do I clone an embedded stack?
Richard Gaskin
ambassador at fourthworld.com
Sun Jan 8 18:24:48 EST 2012
Bill Vlahos wrote:
> I know how to clone a stack that exists on disk:
> clone stack ("path to file on disk")
>
> I want to embed the stack in a custom property of the main stack and clone it from there. Lets say the stack name is "template.rev" and I add it to the uTemplate of this stack.
>
> What would be the clone command syntax for this?
Every cloned stack exists only in memory. To assign it to a file use
the filename property, then issue it a save command:
clone stack "MyTMPL"
set the filename of it to "/SomeFolder/MyStack.rev"
save it
--
Richard Gaskin
Fourth World
LiveCode training and consulting: http://www.fourthworld.com
Webzine for LiveCode developers: http://www.LiveCodeJournal.com
LiveCode Journal blog: http://LiveCodejournal.com/blog.irv
More information about the use-livecode
mailing list