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

Home » Public Forums » archive » How to add a new tag to N structures
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
How to add a new tag to N structures [message #70015] Wed, 03 March 2010 08:46
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Hi guys,

I want to add a new TAG to an array of structures. I don't know how to
do that efficiently.
For example, this is my array:

str={a: 0l, b: ''}
str_arr=REPLICATE(str,10)

And I can't do things like this:

FOR i=0, 9 DO str_arr[i]=CREATE_STRUCT(str_arr[i],'C',0l)
or
str_arr=CREATE_STRUCT(str_arr[i],'C',0l)

This is just an example, my real structs contain a lot of fields.

For some reasons I can define the C tag before so I have to add to
each struct later. There is a way to do that without creating the new
struct array and copying each field separately ?
Thanks,
nata
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Write PNG from plots with different color tables??
Next Topic: Event handling stops for no reason?

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

Current Time: Fri Oct 10 00:31:37 PDT 2025

Total time taken to generate the page: 0.09886 seconds