Seems a bit silly...
Éric Chatonet
eric.chatonet at wanadoo.fr
Fri Oct 8 08:43:31 EDT 2004
Le 8 oct. 04, à 11:31, "Frank D. Engel, Jr." <fde101 at fjrhome.net> a
écrit :
> Should this, or should it not, be valid Transcript code for a
> preOpenStack handler in a stack script:
>
> if the target is the first card of me then
>
> Upon execution, that code results in the complaint:
>
> Chunk: source is not a container
>
> So I try this:
>
> if the name of the target is the name of the first card of me then
>
> Which is accepted; however, this is in a main stack; opening one of its
> substacks should NOT cause the code within the 'if' block to execute,
> correct? But it does...
>
> How can I avoid this problem?
Hi Frank,
In a stack script, I am used to place this handy line at the beginning
of any handler I want to be trapped only in this stack:
if the short name of me <> the short name of this stack then exit
<handler name>
It always works "à la perfection"!
Hope this helps.
Amicalement,
Éric Chatonet
24, Boulevard de Port-Royal
75005 Paris
Fixe : 33 1 43 31 77 62
Mobile : 33 6 20 74 50 89
More information about the use-livecode
mailing list