• 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: what is the best way to 'unset' a variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >what is the best way to 'unset' a variable (From: Bill Hoffman <email@hidden>)

  • Prev by Date: Re: "do script" working in AppleScript 1.8.2b1
  • Next by Date: Re: Pagemaker script - urgent help needed
  • Previous by thread: Re: what is the best way to 'unset' a variable
  • Next by thread: Re: what is the best way to 'unset' a variable
  • Index(es):
    • Date
    • Thread