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

Home » Public Forums » archive » Re: re-initializing program variables
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: re-initializing program variables [message #13869] Mon, 14 December 1998 00:00
mgs is currently offline  mgs
Messages: 144
Registered: March 1995
Senior Member
In article <MPG.10df669977b4af469896ac@news.frii.com>, davidf@dfanning.com
(David Fanning) wrote:

> 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:
...
> Simple minds want to know... :-)

By all means, toss out some more info, Irene. Who knows, you might find a
new way around the problem. I wrote a routine that would create a new file
on the fly under PV-WAVE then run it a couple years ago. I found a better
method to handle it when I looked at the problem a year later.

--
Mike Schienle Interactive Visuals, LLC
mgs@ivsoftware.com http://www.ivsoftware.com/
Re: re-initializing program variables [message #13871 is a reply to message #13869] Mon, 14 December 1998 00:00 Go to previous message
davidf is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: probability scale on 2D line plot?
Next Topic: Leaking memory when spawning

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

Current Time: Thu Oct 09 22:26:44 PDT 2025

Total time taken to generate the page: 0.47858 seconds