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: has <email@hidden>
- Date: Sun, 24 Mar 2002 13:24:46 +0000
Steven Angier wrote:
>
> >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
>
>
>
> Uh-uh. That just gives an error on the second line: "No result was returned
>
> from some part of this expression."
>
>
It works on all machines I have available for testing (AS 1.6 through
>
1.8.x; OS 9.x and OS
>
10.1.x)
It doesn't work here on AS1.3.7 under OS8.6. (Can't test on 9/X at the
moment as they're still in the box...)
Hmmm. Anyone know if this is an AS version issue, or something else?
has
--
http://www.barple.connectfree.co.uk/ -- The Little Page of Beta AppleScripts
_______________________________________________
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.