Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Objects in a collection
Message
De
12/10/2003 01:12:25
 
 
À
11/10/2003 14:52:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00837839
Message ID:
00837884
Vues:
26
Hi,

how about adding a method to the
collection class, which you call
when an object is added to your collection ?

In this method you can add a standard property
to the objects to be added (if it is not there already -
it should be there by way of inheritance if using your objects)
and filled with a reference to the object
where you want to call the specific new behavior.

I wouldn't use the collection itself,
but an object of it - coupling should probably
be loose here.

hth

thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform