Browse Duplicate info in an Array
Posted: Thu Oct 24, 2024 9:26 am
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.
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.)