Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Most effective way to compare 2 collections
Message
De
16/07/2003 05:54:06
 
 
À
15/07/2003 21:46:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00810098
Message ID:
00810572
Vues:
7
Hi John

>I am trying to develop my application in n-tier model. Therefore, I use collection to store my data object.
>May be I am in the wrong way of doing thibg. Could you please share your knowledge on how you do what I mentioned with n-tier model?

I am not sure I understand what you mean. Surely this is a single tier operation? You want to compare the original set of data to a version that mayhave been modified.

That requires connections to both the User Interface and Database. However, within the tier it does not matter what you use (a collection, an array, a cursor or a view). The only issue is how you communicate the results of an operation between tiers.

Therefore when you retrieve the data, store it in a local cursor. When you receive the data back, update your local cursor directly and then use the OLDVAL() and CURVAL() functions to determine what changed on a record by record basis.
----
Regards
Andy Kramek
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform