a small change to my _ArrayUnique2D_Ex() function that allows, by adding a parameter,
to choose if the returned array must contain all of the columns of the input array or only those columns relating to the check of "Uniqueness"
that is (for example):
$aUniques = _ArrayUnique2D_Ex($aArray, "0,1,2,3,4,5", False)
$aArray : The input array
"0,1,2,3,4,5": [optional] The columns you want for "uniqueness"
False/True : [optional] True (default) returns same columns as in input (reurn all columns?)
False returns only the columns as in previous param
Here the modified version:
@boththose
It seems to me that your function has a bug and a limit:
1) the bug: If you pass the following array (note the "FieldX" in middle of column3) your function does not catch it
Local $aArr[7][7] = [ _
['Field1','Field2','Field3','Field4','Field5','Field6','Result'], _
['Field1','Field2','Field3','Field4','Field5','Field6','Result2'], _
['Field1','Field2','Field3','Field4','Field5','Field6','Result3'], _
['Field1','Field2','FieldX','Field4','Field5','Field6','Result4'], _
['Field1','Field2','Field3','Field4','Field5','Field6','Result5'], _
['Field1','Field2','Field3','Field4','Field5','Field6.1','Result6'], _
['Field1','Field2','Field3','Field4','Field5','Field6.1','Result7']]
2) the limit: if you want to check only few columns, say 3 and 5, you can't.