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

Home » Public Forums » archive » Re: problem restoring a save file from within a procedure
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: problem restoring a save file from within a procedure [message #44374] Thu, 09 June 2005 09:11 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Thu, 09 Jun 2005 16:53:35 +0200, Benjamin Luethi wrote:

> Hi
>
> The variables are properly restored, but only "inside" the procedure.
> Once you leave the procedure, they are discarded.
>
> To access them you have to either return the variables from the procedure
> (PRO plotprecip, var1, var2, var3) or declare them as global variables
> (COMMON).

Or, pass an argument in of the name of a variable being restored:

pro restore_it, my_var
restore,'my_var.sav'
end

then on return my_var will have been set.

JD
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Different scales in the same plot
Next Topic: MacTel

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

Current Time: Wed Oct 08 20:01:02 PDT 2025

Total time taken to generate the page: 0.00472 seconds