I have a cicle :
why not run ok ?
it add repeated value into array
local nvalore,ntotale,n.k
local nat
local aTmp:={}
nValore := 1
For n= 1 to 90
For k= 1 to 90
nTotale := EstrattoSumDist(n,k,1) //sample n+k
If nTotale==nvalore
[b] nAt := AScan( aTmp, { |a| a[1] = n .or. a[2] = n} )[/b]
if nAt == 0
aadd(aTmp,{n,k})
else
HB_ADel( aTmp, nAt, .t. )
Endif
Endif
next
nextwhy not run ok ?
it add repeated value into array
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
