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

Home » Public Forums » archive » Re: 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 #21976] Fri, 13 October 2000 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
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. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Previous Topic: Re: BINARY FILES
Next Topic: object wizards

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

Current Time: Fri Oct 10 05:40:42 PDT 2025

Total time taken to generate the page: 1.03649 seconds