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

Home » Public Forums » archive » Re: 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: Structures: [message #23870 is a reply to message #23868] Wed, 21 February 2001 13:58 Go to previous messageGo to previous message
Jason P. Meyers is currently offline  Jason P. Meyers
Messages: 24
Registered: September 2000
Junior Member
Try using anonymous structures. Here is a quick and dirty demo that
illustrates it can be done. Note, you can even store structures within
anonymous structures!

I hope this helps.

Example:

pro test_struct, data

If N_Elements(data) gt 0 then print, data

data = {a:3, b:'Hello World', c:indgen(3,3)}

print, ''
help, data
print, 'Data is now:'
print, data

data = {a:4, b:'Hello World', c:indgen(4,4), d:indgen(3,3)}

print, ''
help, data
print, 'Data is now:'
print, data

end

--
Jason Meyers
Ph.D. Student, Center for Imaging Science
Rochester Institute of Technology
jpm7934@rit.edu
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Modules directory howto find or link IDL 2 it
Next Topic: noclip=0 with postscript fonts

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

Current Time: Sat Nov 29 15:54:42 PST 2025

Total time taken to generate the page: 0.80413 seconds