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

Home » Public Forums » archive » Re: Novice question.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Novice question. [message #22267 is a reply to message #22263] Thu, 26 October 2000 05:40 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Randall Skelton (rhskelto@atm.ox.ac.uk) writes:

> I am fumbling around IDL 5.3 at the moment with an older version of the
> user's manual (circa 1992) but I'm having trouble locating the most basic
> of idl commands.

You might try reading (and printing, if you like) the
current manuals, which are shipped with all IDL
distributions. You can access all of the reference
material from the on-line help:

IDL> ?

All of the IDL manuals are in the docs directory
in the IDL distribution as PDF files. Of course,
there are better ways to learn about IDL programming
than reading the manuals. :-)

> I can set x=1.0 and y=2.0 at the command prompt but how do I then clear or
> reset the x and y variables after this?

You don't have to clear them. Just reset them to something else:

x = 5.0
y = 3.0

> Better still, how do I do this to
> all the variables which I've defined in a program/function?

If you mean by "program/function" an IDL procedure or
function, then you don't have to do this either. The
variables are reset each time you run the program.

I suspect, however, that you mean "main-level program",
which creates variables at the main-level. These are the
variables you might see when you type HELP at the IDL
prompt. These can be cleared in IDL 5.3 by typing
the .RESET_SESSION executive command:

IDL> .RESET_SESSION

> At the moment
> I just quit and restart but that seems rather silly...

Silly, but a time-worn pattern for many of us prior
to IDL 5.3. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL produced postscript files in latex
Next Topic: NO GIF READ OR WRITE IN IDL 5.4

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

Current Time: Sat Oct 11 01:55:48 PDT 2025

Total time taken to generate the page: 0.84233 seconds