How to check what card a stack is currently viewing

David Burgun dburgun at dsl.pipex.com
Thu Dec 1 17:30:09 EST 2005


>
>get the Name of this stack
>-- what you see in the stack inspector
>--stack "Showcase Functions" (which could be a main or sub stack)

Except if you are running in a Function in the stack script that has 
been called by another stack in this case it returns the name of the 
calling stack. To always get the name of the stack you are executing 
in use "me"

get the name of me  <--- in the stack script returns the name of the 
stack you are currently running in.

Hope this helps
Dave



More information about the use-livecode mailing list