Re: How to kill a specific variable in IDL prompt mode? [message #56059] |
Thu, 27 September 2007 18:48 |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On Sep 27, 6:27 pm, full...@gmail.com wrote:
> When I am testing in IDL prompt mode, I often accidentally create a
> new variable that I don't want to create. For example, if I enter:
>
> IDL> k=fingen(5)
>
> what I really want to type is k=findgen(5), but because the mistake I
> made, there are two new variables in the memory:
>
> IDL> help
> fingen undefined=<undefined>
> k undefined=<undefined>
>
> Is there a way to delete these variables after I use it? (other than
> use .reset_session) to kill all the variables.
>
> Thank you.
IDL> delvar, k, fingen
IDL> help
% At $MAIN$
Compiled Procedures:
$MAIN$ MG_SET_PATH
Compiled Functions:
Mike
--
www.michaelgalloy.com
|
|
|