Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Most effective way to compare 2 collections
Message
De
15/07/2003 06:53:34
 
 
À
15/07/2003 03:17:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00810098
Message ID:
00810129
Vues:
14
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform