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

Home » Public Forums » archive » Re: creating a variable from unknow name
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: creating a variable from unknow name [message #42109 is a reply to message #42108] Wed, 29 December 2004 19:43 Go to previous message
KM is currently offline  KM
Messages: 29
Registered: October 2004
Junior Member
On Wed, 29 Dec 2004, Andry William wrote:
> I would to ask some advice on how I can create a variable with the
> name defined by some value in the memory.
>
> I would like to be able to do the same in IDL. I first have to
> check which variable is present in a file (atcually they are
> NetCDF files), then assign the values to the name defined in the
> file.
>
> Something like if I see that the variable "lon" exists in a file,
> then assign its values to the name "lon".
>
> I am not sure if I need some pointer or object for that.

I think you could do it using a pointer (that is how the read_netcdf
procedure does it I tihnk). I don't think you need objects.

But I would do it without pointers like this:

r = EXECUTE( "a=2" )
help, a

Does this do what you want?

-k.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Unknown data type
Next Topic: Re: GUI builder limitations?

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

Current Time: Sun Oct 12 07:20:19 PDT 2025

Total time taken to generate the page: 0.64182 seconds