Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Most effective way to compare 2 collections
Message
From
16/07/2003 05:54:06
 
 
To
15/07/2003 21:46:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00810098
Message ID:
00810572
Views:
6
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
Previous
Reply
Map
View

Click here to load this message in the networking platform