Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing Duplicates in an Array?
Message
De
02/11/2001 16:11:40
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
02/11/2001 16:09:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00576991
Message ID:
00576999
Vues:
20
>>Any simple way to remove duplicates in a one dimensional array? No specific order to the rows and the elements are text. I'm thinking of looping through, and comparing elements, but the no-order thing has got me paused... Thanks!
>>
>>Regards, Renoir
>
>Another...
>
>Of course you can ASORT() the array, iterate through it comparing each member to previous. As you go through the array, each new (non-duplicate member) into a new array.

Now we're getting somewhere... Wonder if I could just leave the original and delete matching elements out of the array as I scan through? Hmmm... Testing time!

Renoir
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform