stack 0 (?)

Geoff Canyon gcanyon at inspiredlogic.com
Wed Mar 6 15:45:01 EST 2002


At 7:42 AM -0800 3/3/02, Greg Saylor wrote:
>#2. I have a stack with a substack... And the substack needs to get access to the controls on it's parent stack....   I can do this if I specify the name of the stack (for example: answer the short name of stack "my stack"), but I can't seem to do it by stack number...  (For example: answer the short name of stack 0)... Is there any way to unambiguously refer to the stack on which a substack belongs to?.. I even tried : answer the short name of word 5 of stack topStack but it failed on this, probably because of the quotes surrounding it I guess?...   The bottom line is, is there some way to do this?...

If I understand correctly, have you looked at the mainStack property? Unless you have stacks with the same name (something to avoid in the first place) this should do the trick.

regards,

Geoff




More information about the use-livecode mailing list