• 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: Null
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Null


  • Subject: Re: Null
  • From: julifos <email@hidden>
  • Date: Tue, 07 Jan 2003 00:32:09 +0100

> Hi!
>
> When a variable hasn't been assigned a value, should we use 'null' or 'missing
> value'?
>
> Steve

x = null
x = missing value
x * 5
x
--> allways error "The variable x is not defined."

So, to check if "x" has a value assigned (when "x" has been defined as
"global" or "local"):

try
x
on error --> undefined
-- set x to 1
end try

JJ
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
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: Null
      • From: Joseph Weaks <email@hidden>
  • Prev by Date: Re: Null
  • Next by Date: Re: Quark 5 can't copy selection w/styles
  • Previous by thread: Re: Null
  • Next by thread: Re: Null
  • Index(es):
    • Date
    • Thread