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

Home » Public Forums » archive » Re: Dynamic array of an Object as class member variable.
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: Dynamic array of an Object as class member variable. [message #45194 is a reply to message #45191] Mon, 15 August 2005 06:02 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Chirag Modh writes:

> I want to implement dynamic array of an Object as class member
> variable.
>
> ;------------------------------------------------
> My class
> Class= {myclass, $
> oLine: obj_new()$
> }
> Function myclass :: Init , N_element
> Self.oLine = Make_Array(N_element,/obj )
> For i=0 , N_element do begin
> Self.oLine[i] = obj_new('IDLgrPolyline')
> end
> End
>
> ;-----------------------------------------------------
> I can't create dynamic array of an object as class member variable.
> Any other way, I can implement this thing.

I think if you returned a 1 from your INIT method you
would have better luck. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Previous Topic: adding up time series question
Next Topic: Re: Maximum value array resampling

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

Current Time: Thu Oct 09 23:52:55 PDT 2025

Total time taken to generate the page: 0.87853 seconds