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

Home » Public Forums » archive » Re: structure into strcuture
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: structure into strcuture [message #56286 is a reply to message #56285] Fri, 12 October 2007 10:57 Go to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
I think the problem here is just how you did it. It works for me, try
this code

IDL> a={ a1:0l, a2:1l }
IDL> b={ b1:0l, b2:1l }
IDL> c = {a:a, b:b}
IDL> help, c
C STRUCT = -> <Anonymous> Array[1]
IDL> help, c, /str
** Structure <22cbb14>, 2 tags, length=16, data length=16, refs=1:
A STRUCT -> <Anonymous> Array[1]
B STRUCT -> <Anonymous> Array[1]
IDL> print, c.a.a1
0





Cheers,

Brian

------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: map_set and limit question
Next Topic: Re: Bug in SWITCH - ELSE: statement?

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

Current Time: Fri Oct 10 17:28:09 PDT 2025

Total time taken to generate the page: 0.80205 seconds