Re: Null
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>