Re: what is the best way to 'unset' a variable
Re: what is the best way to 'unset' a variable
- Subject: Re: what is the best way to 'unset' a variable
- From: Steven Angier <email@hidden>
- Date: Sat, 23 Mar 2002 16:25:18 +1100
- Organization: Macscript.com
You can destroy a variable in AppleScript by setting its value to nothing, though I'm not
sure why you'd want to:
set x to 1
set x to GetNothing()
return x
on GetNothing()
return
end
Steven Angier
Macscript.com
Bill Hoffman wrote:
>
I was just wondering if the net effect of each of these approaches to
>
'unsetting' a variable is the same, and if there is a 'preferred' choice
>
for some reason?
>
>
set x to ""
>
set x to 0
>
set x to null
>
set x to missing value
_______________________________________________
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.