Differentiating a substack from a mainstack

Peter Haworth pete at lcsql.com
Wed Nov 20 16:09:08 EST 2013


But in both the new stack and open stack handlers the main stack and short
name of the stack are always the same for a newly created stack whether you
created a main stack or a sub stack. By create,  I mean with the ide file
menu options

Pete
lcSQL Software
On Nov 20, 2013 11:32 AM, "Richard Gaskin" <ambassador at fourthworld.com>
wrote:

> All stacks have a mainstack property.  With a mainstack, its mainstack
> property will be its own name, so:
>
> if the mainstack of this stack = the short name of this stack then
>   put "I'm a mainStack"
> else
>   put "I'm a substack"
> end if
>
>
> --
>  Richard Gaskin
>  Fourth World
>  LiveCode training and consulting: http://www.fourthworld.com
>  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
>  Follow me on Twitter:  http://twitter.com/FourthWorldSys
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list