• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Modifications and Variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Modifications and Variables
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Modifications and Variables (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Old Topic Revisited, Bounding Rectangles +
  • Next by Date: Re: Modifications and Variables
  • Previous by thread: Re: Modifications and Variables
  • Next by thread: Re: Modifications and Variables
  • Index(es):
    • Date
    • Thread