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

Home » Public Forums » archive » Initializing object array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Initializing object array [message #38431] Mon, 08 March 2004 19:17 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

I've been programming fast and furious for nearly 12 hours straight.
Can't think straight. Not enough postings here today to distract
me. :-(

Anyway, I can use some succor.

I have an object. One of the fields of this objects
is a object array. The field is called "contours":

PRO myclass__define
class = { MYCLASS, contours:Obj_New()}
END

Now, when I create the object, I want to pass an object
array of ROI objects that I created somewhere else.

FUNCTION myclass::INIT, Contours=contours
self.contours = contours
RETURN, 1
END

This doesn't work. Says contours must be a scalar
in this context. Well!!! Shucks.

Surely I have done this before. But I can't for the
life of me remember how. How do I initialize a field
as an object array?

Yours in programming-induced stupidity,

David

P.S. Let's just say if I can just get over this one little
hurtle that this program from hell may actually be finished!

--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: append a matrix after a .dat file which stores all similar matrix
Next Topic: Re: append a matrix after a .dat file which stores all similar matrix

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

Current Time: Wed Oct 08 15:22:59 PDT 2025

Total time taken to generate the page: 0.00437 seconds