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

Home » Public Forums » archive » object wizards
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: object wizards [message #22068 is a reply to message #21978] Fri, 13 October 2000 00:00 Go to previous messageGo to previous message
Bernard Puc is currently offline  Bernard Puc
Messages: 65
Registered: January 1998
Member
David Fanning wrote:
>
> Bernard Puc (bpuc@va.aetc.com) writes:
>
>> Apparently, an array created with objarr() can only store one type of
>> object. And thats consistent with arrays of structures. But, I want to
>> store several different objects together somehow in a single variable.
>> A structure doesn't work since I have a variable number of objects to
>> store. Therefore, is the only way to do this with an array of pointers,
>> where each pointer references an object reference?
>
> Why would you think this!? This simple test works well:
>
> IDL> a=objarr(2)
> IDL> a[0] = Obj_New('idlgrSurface')
> IDL> a[1] = Obj_New('idlgrPlot')
>
> An object reference is an object reference. I can't see
> how ObjArr or anyone else can object. :-)

Yep, you're absolutely right. I was misinterpreting the IDL error
message. The problem I'm having is that I am defining an object with
one of the data elements initialized as an objarr(1). Then, later on I
am trying to append another object onto that array. I think what I need
is a pointer to the object array.

--
Bernard Puc AETC, INC.
bpuc@va.aetc.com 1225 Jefferson Davis Highway #800
(703) 413-0500 Arlington, VA 22202
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: object wizards
Next Topic: Re: Problems with IDL call_external to C shared object

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

Current Time: Mon Dec 01 06:30:02 PST 2025

Total time taken to generate the page: 0.87736 seconds