Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OOP Design
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00198504
Message ID:
00199028
Vues:
33
Hi Ellen...

As I see it, you have some process that changes data to any number of fields in any number of different data sources. Generically, it is all data. The question being, how do you get the update process to process everything....generically....right??

If this is the problem, the way I would handle it is like this...

Whenever you make a change to something, have a collection class of some sort get populated. Then, when you need to go through the update process, pass the collection. Have the update process iterate through the collection. What information is contained in the collection depends on your situation. If you are using ADO, the collection could be an array of ADO Recordsets. If you use other data access strategies, the task gets a bit more difficult, but it can be done. This is why ADO is nice, because it is a set of true objects that can be passed around.

Good luck,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform