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

Home » Public Forums » archive » saving variables between calls to a procedure?
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
saving variables between calls to a procedure? [message #31619] Wed, 31 July 2002 05:38
shawn is currently offline  shawn
Messages: 2
Registered: July 2002
Junior Member
Hello,
I am just curious if there is a better way to save variables
between a call to a procedure than to define them in a common block
which is shared between procedures, or passing them back and forth.
One person suggested to me saving them to a file and re-reading a
file. But I am hoping for some simple way to declare a particular
variable as a "saved" variable, which IDL will remember the next time
the procedure is called. It actually just occured to me that I might
declare a common block which is actually not shared with any other
procedure, then I would be able to avoid mistakenly using the variable
in that procedure in a way that I did not intend to use it. Is it
possible to do this, declare a common block, but not use it in any
other procedure, and will IDL remember the variables if the common
block is not used in any other procedure? Of course it is simple for
me to test this on my own, so I guess I am really still asking if
there is a better way.
Thank you,
Shawn Young
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Image scrolling, displaying axes from outside the visible window
Next Topic: extract subarray dynamically?

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

Current Time: Sat Oct 11 10:13:35 PDT 2025

Total time taken to generate the page: 0.64153 seconds