preOpenStack - Main stack script affects SubStack when it opens?
scott at tactilemedia.com
Tue Dec 7 20:41:50 CST 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.
Tactile Media, UX Design
On Dec 7, 2010, at 6:19 PM, Glen Bojsza <gbojsza at gmail.com> 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
> 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?
> 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