Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Most effective way to compare 2 collections
Message
From
15/07/2003 06:53:34
 
 
To
15/07/2003 03:17:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00810098
Message ID:
00810129
Views:
13
Hi John

>Any effective ways to compare 2 collections, which can indicate which item was removed, which is added and which is still remain there (position can be ignore)?
>

It depends. Has an item in both collections got the same key? If so you can just use GETKEY() to see if it's there or not.

Otherwise you may be into using COMPOBJ() to see if an object in one collection is the same as any object in the other - that could be a tedious process if the collections are large.
----
Regards
Andy Kramek
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform