Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Catégorie:
Codage, syntaxe et commandes
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement