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

Home » Public Forums » archive » Array of structures.
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 Structures [message #38995 is a reply to message #19984] Thu, 15 April 2004 09:03 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Kenneth Bowman <k-bowman@null.tamu.edu> writes:

> In article <a6ebc8fb.0404150705.7a9f883b@posting.google.com>,
> dsteinberg@whrc.org (Dan Steinberg) wrote:
>
>> I am wondering if it is possible to create an array of structures. I
>> want to read multiple different anonymous structures into a single
>> variable so I can reference each structure using the variable name and
>> the array index. Is this possible?
>>
>> -Dan
>
> See "Arrays of Structures" in Chapter 7 of "Building IDL Applications.
> You can use REPLICATE to create the array of structures.

That was my first reaction too, but if you read the OP carefully, he
discusses "multiple *different* anonymous structures," (emph added).

It is impossible to make an array of dissimilar structures in IDL. The
poster really must use an array of pointers, and then each pointer can
point to a different structure.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Array of Structures
Next Topic: Can IDL look after graphics in C++ code?

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

Current Time: Mon Dec 01 21:25:50 PST 2025

Total time taken to generate the page: 0.16076 seconds