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

Home » Public Forums » archive » Re: Array of associated 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 of associated variables? [message #42285 is a reply to message #42281] Thu, 20 January 2005 03:25 Go to previous message
marc schellens[1] is currently offline  marc schellens[1]
Messages: 183
Registered: January 2000
Senior Member
An array of associated variables is not possible.
You could make a poitner to your associated variable and store it in
a pointer array.

IDL> openu,1,'aaa.tmp'
IDL> a=assoc(1,intarr(10))
IDL> print,a
IDL> p=ptr_new(a)
IDL>

Cheers,
marc

sso@nilu.no wrote:
> A brief question: Is it in some way or another possible to make an
> array of associated variables? The examples below don't work but
> perhaps there is some other way?
>
> -------
> for i=1,n do begin
> a=assoc(...)
> if n_elements(all) le 0 then all=[a] else all=[all,a]
> endfor
> -------
> a=assoc(...)
> all=replicate(a,n)
> -------
>
> Thanks for any help
> Sverre Solberg
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: AVI, MPEG, QT reading, writing and preprocessing
Next Topic: Tracking Cursor in Object Graphics Draw Widgets

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

Current Time: Wed Oct 08 15:49:15 PDT 2025

Total time taken to generate the page: 0.00437 seconds