preOpenStack - Main stack script affects SubStack when it opens?

Scott Rossi scott at
Tue Dec 7 21:41:50 EST 2010

If you move the preOpenStack handler to the script of the first card of the mainstack, the substack won't trigger the handler.  This is a common method of handling "housekeeping" and other routines that you want run at startup, but don't want triggered by substacks.


Scott Rossi
Creative Director
Tactile Media, UX Design

On Dec 7, 2010, at 6:19 PM, Glen Bojsza <gbojsza at> wrote:

> Maybe it's me or should this not be happening. Livecode 4.5.1.
> I have a mainstack that has a preOpenStack that does some house keeping...
> I just added a substack that is opened from the mainstack by a user clicking
> a button.
> **There is NO preOpenStack in the substack
> When the substack opens the preOpenStack of the mainstack tries to run which
> generates an error since none of the objects on the mainstack are on the
> substack.
> Should preOpenStack only work with the stack that contains it?
> If this is the proper way the system works then what is the work around?
> thanks,
> Glen
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the Use-livecode mailing list