- Code: Select all Expand view RUN
- for h=1 to Len(atmp)
If atmp[h][1] == atmp[h][2] .or. ;
atmp[h][1] == atmp[h][3] .or. ;
atmp[h][3] == atmp[h][2]
HB_ADel( aTmp, h, .t. )
Endif
next
but then it happens that I have two records (A and B)
which have an equal number in the first or second column because the triplet
1- 2 - 88
is the same as the triplet
2 - 1 - 88
and
1- 88 -2
how can i solve to find the same records?
I tried using aScan But I couldn't
I tried also with
- Code: Select all Expand view RUN
- for h=1 to Len(atmp)
If atmp[h][1] == atmp[h][2] .or. ;
atmp[h][1] == atmp[h][3] .or. ;
atmp[h][3] == atmp[h][2]
HB_ADel( aTmp, h, .t. )
Endif
next
nVolte := 0
For t= 1 to Len(aTmp)
nA:= atmp[t][1]
nb:= atmp[t][2]
nc:= atmp[t][3]
for h=1 to Len(atmp)
If atmp[h][1] == nA .and. ;
atmp[h][2] == nB .and. ;
atmp[h][3] ==nC
nVolte++
If nVolte >1
HB_ADel( aTmp, h, .t. )
Endif
Endif
next
next
but not run ok