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

Home » Public Forums » archive » Save file creation rules of the road
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: SAVE [message #70880 is a reply to message #69827] Thu, 13 May 2010 14:29 Go to previous messageGo to previous message
Aram Panasenco is currently offline  Aram Panasenco
Messages: 41
Registered: April 2010
Member
fgg wrote:
> Hi there,
>
> I'm running a procedure that has lines in it such as:
>
> (Scope_VarFetch('data', LEVEL=1, /ENTER)) = 1
>
> ... that are used to save variables to the main IDL level. I'd like to
> add a line at the end of this procedure to make it save all variables
> that were created in a *.sav file. Something like this:
>
> save, /variables, filename= '/Users/xxx/Desktop/example.sav'
>
> ... but it's not working. I'm getting in the *.sav file all other
> variables defined in the procedure, but the ones created using
> Scope_VarFetch. Any suggestions?
>
> PS: if I run the procedure first (without the save line in it) and
> then type the save line at the IDL prompt I get exactly what I want.
> Just wanted to know if it's possible to automate this process.
>
> Thank you!

Hello fgg,

scope_varfetch is a highly dangerous routine that you should only use if
there is absolutely no other alternative to implementing something
crucial (and there almost always is). Seeing as you are new, we can't
give you advice on how to use scope_varfetch because it will make your
program harder to write, more prone to errors, and, most importantly,
using scope_varfetch can interfere with other IDL programs, making your
program unusable (by you and others). Instead, can you tell us in more
detail what exactly you are trying to do so that we can show you a
better way to accomplish it. What tasks does your procedure aim to do?

~Aram Panasenco
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: coping with a slow license server
Next Topic: Re: Breaking files

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

Current Time: Sat Oct 11 06:22:06 PDT 2025

Total time taken to generate the page: 1.27474 seconds