|
Re: re-initializing program variables [message #13871 is a reply to message #13869] |
Mon, 14 December 1998 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Irene Barg (ibarg@as.arizona.edu) writes:
> How do I re-initialize all program variables with a procedure call?
> Example, I want to do something like:
>
> pro doit_toit, inlist
> openr, ilun, inlist, /GET_LUN
> filename = ''
> while not eof(ilun) do begin
> readf, ilun, filename
> .rnew buildref.pro
> buildref,filename
> endwhile
> free_lun, ilun
> end
>
> Of course, I can't do ".rnew buildref.pro" inside program mode.
> Suggestions?
The Resolve_Routine command is used to compile a procedure
from within another procedure, but for the life of me I
can't figure out *why* you want to do this!? What could
possibly be in the procedure BUILDREF that could be "re-initialized"
by re-compiling that procedure?
Simple minds want to know... :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Progamming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|