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

Home » Public Forums » archive » Re: How to transfer variables between files
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: How to transfer variables between files [message #32680] Thu, 31 October 2002 10:49
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
lily_zhang wrote:
>
> I create a project, and the project contains several files. Now I
> intend to give new value for variabe FileName in pro1.pro, and to
> retrieve the value of variable FileName in pro2.pro.

pro pro1, FileName_In, FileName
; Change it
FileName = FileName_In + "_changed"
end

pro pro2, FileName
; Retrieve the new value
print, FileName
end

IDL> pro1, 'Junk', FileName
IDL> pro2, FileName
Junk_changed

Is this what you wanted?

> And I also wonder if you can explain how to define global variables in
> IDL?

Use the COMMON statement. You can find the description in the online help.
Hope this helps,
Pavel
[Message index]
 
Read Message
Previous Topic: Re: Masking using user defined ROIs
Next Topic: Re: IDL dynamical widget resizing bugs under linux

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

Current Time: Sat Oct 11 15:01:35 PDT 2025

Total time taken to generate the page: 1.19841 seconds