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

Home » Public Forums » archive » Re: structure concatenation
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 concatenation [message #20743] Fri, 21 July 2000 00:00
promashkin is currently offline  promashkin
Messages: 169
Registered: December 1999
Senior Member
Structures must be the *same*, not just *identical*. Internal names of
anonimous structures in IDL are different and they can not be placed in
the same array. Do the following:

temp = { ... your_fields ...}

temp_struct = temp
plot_params = temp

Now temp_struct and plot_params are the same anonimous structures.

Assign fields values to both.
Now you can put them in array.

Cheers,
Pavel

Stuart Colley wrote:
>
> I'm trying to concatenate two structures using:
>
> plot_params=[TEMPORARY(plot_params), tmp_struct]
>
> but get:
>
> % Conflicting data structures: TMP_STRUCT,concatenation.
>
> But the structures have exactly the same tag names, and the type of data,
> INT, FLOAT, etc, is the same for each tag in both structures. I even put
> a STOP statement before the concatenation to double check the structures.
>
> Am I missing something?
> cheers,
> S
>
> ____________________________________________________________ __________
>
> telephone: +44 (0)20 7419 3483
> home page: http://www.star.ucl.ac.uk/~src/
>
> Please e-mail me in plain text ONLY: MS Word, html, etc,
> are automatically sent to /dev/null (i.e. deleted).
[Message index]
 
Read Message
Previous Topic: TrueType font caution
Next Topic: enhanced container object

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

Current Time: Sun Oct 12 10:39:33 PDT 2025

Total time taken to generate the page: 0.07933 seconds