Setting custom properties for a newly cloned stack

Doug Lerner doug at webcrossing.com
Fri Jan 9 21:02:53 EST 2004


What is the best way, timing-wise, to set the custom properties of a newly
cloned stack.

I (stupidly) tried

clone stack "myStack"
set the myProperty of "Copy of myStack" to "123"

But... if in the openStack handler of the cloned stack I need to make
immediate use of that property it seems it is too late. The clone command
opens up the stack *first*, right? Then *after that* the set command runs.

So how to best set custom properties in the cloned stack if they need to be
used during the openStack handler?

Global variables?

doug



More information about the use-livecode mailing list