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

Home » Public Forums » archive » Re: array of objects?
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: array of objects? [message #29279 is a reply to message #29276] Tue, 12 February 2002 06:37 Go to previous messageGo to previous message
Ted Cary is currently offline  Ted Cary
Messages: 53
Registered: October 2001
Member
I can't check this now, but my guess is that you replicated the object
reference when you created your array--you have 100 references to the same
object, not 100 different instances of the object. In other words, Obj_New
was only called one time, and the reference it returned was put into every
element of the array. Check your heap (Help, /Heap) --are there 100
objects, or just one? All you did in each iteration of your SetProperty
loop was set the object's self.integer_value to the loop counter, so the
highest count is returned by GetProperty.

HTH
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Displaying bitmap pictures
Next Topic: Object method compiling

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

Current Time: Sun Oct 12 05:41:52 PDT 2025

Total time taken to generate the page: 1.35811 seconds