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

Home » Public Forums » archive » structure references
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 references [message #86752 is a reply to message #86751] Sun, 01 December 2013 11:38 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Seb writes:

> While trying to set all elements of a structure to a value, I read
> http://www.exelisvis.com/docs/Structure_References.html and it seems
> this is not possible with a simple operation like:
>
> x={a:double(0), b:double(0)}
> x.(*)=20
>
> Is writing a loop over the tags the only way?

If all elements of your structure are the same data type, why aren't you
using an array?

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Reading ERDAS IMAGINE
Next Topic: Multiple color plots, same color bar

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

Current Time: Sat Oct 11 06:55:07 PDT 2025

Total time taken to generate the page: 1.20237 seconds