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

Home » Public Forums » archive » Re: Array elements as named variables?
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: Array elements as named variables? [message #2370 is a reply to message #2368] Mon, 27 June 1994 10:16 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
msegur@newton (The Ethereal Knight) writes:

> Is it possible to used an element of an array as a named variable
> in order for a procedure to store a value in it?

The simple answer is no. Unfortunately, the inner mechanics of IDL doesn't
allow you to do this. You have to do something like this

d_name = make_array(glob.ndims, /STRING)
d_size = make_array(glob.ndims, /LONG)
ncdf_diminq, cdfid, i, temp_name, temp_size
d_name(i) = temp_name
d_size(i) = temp_size

(assuming that the last two parameters of ncdf_diminq are output parameters.

Bill Thompson
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: call_external under Solaris
Next Topic: Re: event fields

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

Current Time: Fri Oct 10 14:07:48 PDT 2025

Total time taken to generate the page: 0.88278 seconds