Re: Handler query - exchanging values
Re: Handler query - exchanging values
- Subject: Re: Handler query - exchanging values
- From: Malcolm Fitzgerald <email@hidden>
- Date: Fri, 30 Jun 2006 14:53:52 +1000
On 29/06/2006, at 11:31 PM, Yvan KOENIG wrote:
Just matter of curiousity. For my own needs, I prefer to pass the
needed values from one handler to an other one.
what need for the " set variables as global" in the handlers ?
I thaught that defining them as global in the main script was
sufficient.
For see, I removed the two " set variables as global" instructions
from the handlers and didn't sew any odd effect.
Am'I missing something ?
try this
-----------------------------
global apples, pears
set apples to 3
boo()
hoo() --> error: the variable apples is not defined
on boo()
set apples to 1
end boo
on hoo()
display dialog apples
end hoo
-----------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden