Browse Duplicate info in an Array

This forum is for posting of useful information
Post Reply
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4774
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Browse Duplicate info in an Array

#1 Post by rdonnay »

Bobby Drakos and I needed a function that finds duplicate information in a 2 dimensional array and creates a browse of that info which shows all the duplicates in groups.

I wrote 2 new functions: DC_ArrayDupes() and DC_ArraySort().
http://bb.donnay-software.com/donnay/arraydupes.zip
Copy _dcarray.prg to your \exp20\source\dclipx folder and run build20.bat to rebuild dclipx.dll.

Here is how to use it:
In this example, we want to show duplicates where elements 8 + 7 are duplicated.

Code: Select all

aDir := Directory()
aData := DC_ArrayDupes(aDir,{8,7},.t.)
arraydupes.JPG
arraydupes.JPG (243.33 KiB) Viewed 1042 times
The eXpress train is coming - and it has more cars.

Post Reply