Re: global variables
Re: global variables
- Subject: Re: global variables
- From: Luther Fuller <email@hidden>
- Date: Thu, 18 Jul 2013 07:27:45 -0500
On Jul 17, 2013, at 6:44 PM, Deivy Petrescu wrote: Every top level variable is persistent in AS. All of them. One does not need to declare it global to make it persistent.
Yes, top level variables (i.e. those used in the run handler) are by default global variables. This might be a big problem !!!!!!
You can make them local like this ...
on run local x, y, z
set x to y + z -- and other stuff end run
|
_______________________________________________
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