Differentiating a substack from a mainstack
pete at lcsql.com
Wed Nov 20 23:36:05 CET 2013
Thanks Scott. Tried that and the owner is empty whether I'm creating a
main stack or a substack. Once again, it doesn't end up that way, just
within the scope of a front script openStack/newStack handler.
Maybe this is a change in how stacks are created depending on which LC
version? These tests were done using LC 5.5.4.
lcSQL Software <http://www.lcsql.com>
On Wed, Nov 20, 2013 at 1:18 PM, Scott Rossi <scott at tactilemedia.com> wrote:
> I believe you could also check the owner:
> if the owner of stack xyz is empty then
> return "mainstack"
> else return "substack"
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> On 11/20/13 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"
> > 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:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode