sarahr at genesearch.com.au
Tue Feb 5 22:32:00 EST 2002
I don't know how to stop it happening when you return to the stack, but the
way I stop it happening when opening other stacks is to give the other
stacks empty handlers of the same name.
If the substacks have in their scripts:
with no "pass", then they won't try & run your main stacks preOpenStack
I hope someone else has a neat solution to problem (ii).
> How do I set a clean-up operation to work when a stack is first
> opened, but not when I change to another stack such as a substack or
> even the documentation? My attempt using a preopenstack handler in
> the stack that I want to clean triggers whenever I open ANY stack,
> and of course fails because the false-triggering stack doesn't have
> the objects referred to in the clean-up routine.
> I want to (i) trigger the handler when the user first starts a
> particular stack, (ii) not have it operate when that stack is
> returned to from a different stack in a session, and (iii) only have
> it operate on the appropriate stack. These sound easy, but I can't
> see a way to do it without conditionals testing the name of the
> stack and a global holding information regarding whether the clean-up
> has been run already. Surely it is easier than that!
> Michael J. Lew
> Senior Lecturer
> Department of Pharmacology
> The University of Melbourne
> Parkville 3010
> Phone +613 8344 8304
> New email address: michaell at unimelb.edu.au
> use-revolution mailing list
> use-revolution at lists.runrev.com
More information about the Use-livecode