Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Collections
Message
De
25/12/2001 15:38:50
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00598067
Message ID:
00598073
Vues:
22
>How do I create a collection in VFP?

As an object with an array property. It should have a this_access and this_assign method, which will somehow store the names of the objects in the array, and retrieve them by name. Thus when you mention oColl.items("shoe"), oColl_access will receive "shoe" as a parameter, and your code should find that "shoe" is the name of .items[5] and it should return items[5]. The additem method should take care of storing the names and indexes in an appropriate place.

Basically, that's what I saw how collections are created in a framework.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform