Stupid Question#1 [message #13314] |
Mon, 02 November 1998 00:00  |
rob cosgrave
Messages: 1 Registered: November 1998
|
Junior Member |
|
|
Hi Folks,
am having a spot of bother with smething that should be really
simple. I cannot get FOR ....DO BEGIN ENDFOR loops to work. I thought
first it was something to do with my program, so I tried a really simple
one, and that didn't work. Then I cut and paste the example out of the
online documentation and that didn't work. And then I tried running one
of the scripts which came with IDL and that didn't work either. They
all failed at the endfor, and didn't close the loop.
I thought it was just me doing something stupid, but when
the programs that came with it failed also...
My version is the IDL student on a Win95 machine. Could the
student editionness be the problem?
Again, apologies for the dumb question, but this is driving me crazy,
and it's kinda hard to program without loops!
thanks
Rob Cosgrave
|
|
|
Re: Stupid Question [message #15015 is a reply to message #13314] |
Tue, 13 April 1999 00:00  |
Michael Asten
Messages: 53 Registered: March 1999
|
Member |
|
|
If you have common blocks, the answer aparently is "no". RSI Tech support
advised me a few months ago that a 'delete all variables, common blocks and
routines' type button is 'on request'.
Regards,
Michael Asten
H T Onishi wrote:
> Is there any way to kill all variables and compiled procedures within an IDL
> session other than quitting and restarting IDL? In particular I would like
> IDL to recompile all .pro files used in a program.
>
> Thanks,
>
> Howard Onishi
|
|
|
Re: Stupid Question [message #15018 is a reply to message #13314] |
Mon, 12 April 1999 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Howard Onishi (htonishi@home.com) writes:
> Is there any way to kill all variables and compiled procedures within an IDL
> session other than quitting and restarting IDL? In particular I would like
> IDL to recompile all .pro files used in a program.
Here is a little program that will destroy all your main-
level variables for you:
PRO NO_MAS
END
Whenever you want all main-level variables to disappear,
type this:
IDL> .Run No_Mas
I don't know of any way to re-compile all the currently
compiled procedures and functions, but you might try
catching the names of all the compiled routines with
something like this:
Help, /Routines, Output=theseNames
Then you could parse the "theseNames" string array
and use Resolve_Routine on each of the names.
Are you offering money to the person who writes this
program?
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
|
|
|