Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create collections?
Message
From
06/03/1998 13:31:18
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00082693
Message ID:
00083072
Views:
30
>>I want to create an object and need this object keep an array of other objects. How can I do it?
>>
>>I mean, how to create a behavior similar to that in pageframes, containers, forms or so, that keeps a collection of objects inside a single object? Even more, how could it keep track of the number of elements?
>
>CodeBook has two basic collection classes. The first is the Reference collection. This class uses an array to hold references to objects. The Add() method accepts a reference the an object and stores the reference into the array.
>
>The second is the Child collection. This one behaves more like what you're looking for. The member objects are childern of the collection. The Add() method accepts a class and name. The object is created using AddObject.
>
>-Mike

I've found your answer to be in the course of my need

Excuse my ignorance about this, but what is Codebook? Would you please give me a more specific help on this?

Thanks
There´s a better life... Just it´s more expensive!
Cristóbal Manrique M.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform