Re: Modifications and Variables
Re: Modifications and Variables
- Subject: Re: Modifications and Variables
- From: Shane Stanley <email@hidden>
- Date: Mon, 06 Jan 2003 08:36:30 +1100
On 6/1/03 7:20 AM +1000, Paul Berkowitz, email@hidden, wrote:
>
If x is a global, then why is it undefined?
Compare these two variations of your scripts:
set x to 3
myHandler()
on myHandler()
global x
display dialog (x as string)
end myHandler
And:
on otherHandler()
set x to 3
end otherHandler
otherHandler()
myHandler()
on myHandler()
global x
display dialog (x as string)
end myHandler
--
Shane Stanley, email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.