Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing Duplicates in an Array?
Message
From
02/11/2001 16:11:40
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
02/11/2001 16:09:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00576991
Message ID:
00576999
Views:
18
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform