Re: varibles in handler
Re: varibles in handler
- Subject: Re: varibles in handler
- From: "Nigel Garvey" <email@hidden>
- Date: Tue, 18 Jan 2011 22:17:38 +0000
In your message of Tue, 18 Jan 2011 15:40:04 -0600, you wrote:
>One suggestion, it might help to put the global declaration inside the
>handler. There are some scoping issues that require it, and it's really not
>needed anywhere else in a script. (In cases where it its simply declare it
>in those handlers too.)
I always think of something moments after posting scripts here and
that's what it was this time. :\ Thanks for pointing it out.
A global declared in the run handler is visible throughout the script. A
global declared in an ordinary handler is only visible in that handler,
the run handler, and in any other handler where it's explicitly declared.
NG
>On 1/18/11 1:12 PM, "Nigel Garvey" <email@hidden>
>wrote:
>
>>
>> global originalDelimiters
>>
>> on setDelimiters(newDelimiter)
>> if (newDelimiter's class is integer) then
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden