Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create collections?
Message
De
06/03/1998 13:31:18
 
 
À
06/03/1998 08:26:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00082693
Message ID:
00083072
Vues:
25
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform