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

Home » Public Forums » archive » procedure with arbitrary parameter
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: procedure with arbitrary parameter [message #76408 is a reply to message #76259] Mon, 30 May 2011 10:12 Go to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
On Mon, 30 May 2011, Evianis Cruz wrote:

> So in my procedure call I have something like this
>
> pro test, filename, var
>
> restore, filename
> plot, var
>
> end
>
> var will be the name of the variable I want to plot from restoring the
> file. I'm thinking of giving var as a string in the procedure call. My
> question is how would I do this and is it possible?
>

Look up SCOPE_VARFETCH in IDL help:

plot, scope_varfetch('my_var_name')

regards,
Lajos
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Automatic Binsize Calculations
Next Topic: How to plot multiple cgContour plots using the same colour levels (but containing differing data)

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

Current Time: Wed Oct 08 17:33:35 PDT 2025

Total time taken to generate the page: 0.00432 seconds