Copy sub-stacks

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
AlexAdams
Posts: 38
Joined: Sat Jan 17, 2009 8:49 pm
Contact:

Copy sub-stacks

Post by AlexAdams » Wed Sep 02, 2009 9:35 pm

How do I 1. duplicate a sub stack within the same main stack and 2. how do I copy a sub-stack of one main stack to another main stack. For instance, how to I copy the sub-stack InetBrowser from main stack Browser Sampler to the main stack of the app I am working on?

Thanks,
Alex Adams
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Thu Sep 03, 2009 8:46 am

Hi Alex,

1. check "clone" in the docs (Revolution Dictionary)
2. clone the stack you want to copy and then set the mainstack of that "clone" to the other stack.

Unfortunately you cannot copy a substack directly to another stack.


Best

Klaus

Post Reply