by
Mark >> Mon, 30 May 2005 5:56:05 GMT
Thanks for the prompt reply,
The collection I was hoping to use is of type VirtualColl... just simply the 'instances' pointer of the 'Class' class.
I have created my own class with a unique Integer for each item stored as a variable within each class. The way that I currently search is that I iterate amongst all instances of the object and seach for the ID number...
foreach member in Member.instances do
if memberID = member.getMemberID then
return member;
break;
endif;
endforeach;
I have tried to located the documentation for the VirtualColl class however couldn't find anything in the Help files to suggest that it have any support for random access. I don't mind using my iterative method for finding objects in the collection, however directly accessing them would be nice
Mark