comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How to kill a specific variable in IDL prompt mode?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: How to kill a specific variable in IDL prompt mode? [message #56059] Thu, 27 September 2007 18:48
Michael Galloy is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Auto-complete in IDL prompt.
Next Topic: Re: BMP to cursor bitmap

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 23:15:13 PDT 2025

Total time taken to generate the page: 1.36120 seconds