Information générale
Catégorie:
Programmation Orientée Object
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement