Cloning a stack as a substack of the main stack?

Klaus Major klaus at major-k.de
Fri Jan 9 10:21:38 EST 2004


Hi Doug,

> When I use the clone command as in
>
> clone stack "myStack"
>
> even though "myStack" is a substack of the main stack, the *cloned* 
> stack is
> its own main stack - so it can't find the handlers in the real main 
> stack.
>
> Does anybody know how to clone a substack so that it also is a 
> substack?

Add another line:

...
clone stack yourStack"
set the mainstack of it to "yourMainStackHere"
...

### IT will be: stack "Copy of Stack yourStack"

> Thanks,

Hope that helps...

> doug

Regards

Klaus Major
klaus at major-k.de
www.major-k.de



More information about the use-livecode mailing list