analytical scoreboard - Resolved -

Post Reply
User avatar
Silvio.Falconi
Posts: 7164
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

analytical scoreboard - Resolved -

Post by Silvio.Falconi »

Image


in an array except a series of numbers from zero to 90 from the second element onwards up to 55 fields.
each time I save the array record


However, it is possible that there are all zeros in the array record


Image

For a sample after the number 21 I not have I have no other number but only zeroes

how can i check when i have all array elements the number 0 and not the other numbers?
Last edited by Silvio.Falconi on Thu May 26, 2022 10:51 am, edited 1 time in total.
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
User avatar
Antonio Linares
Site Admin
Posts: 42597
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 40 times
Been thanked: 86 times
Contact:

Re: analytical scoreboard

Post by Antonio Linares »

AScan( aData[ row ], { | n | n != 0 } ) == 0
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 42597
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 40 times
Been thanked: 86 times
Contact:

Re: analytical scoreboard

Post by Antonio Linares »

Thanks to Rao, as in first column you have a number:

AScan( aData[ row ], { | n | n != 0 }, 2 ) == 0
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio.Falconi
Posts: 7164
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Re: analytical scoreboard

Post by Silvio.Falconi »

Antonio Linares wrote:Thanks to Rao, as in first column you have a number:

AScan( aData[ row ], { | n | n != 0 }, 2 ) == 0


thanks run ok
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
User avatar
Silvio.Falconi
Posts: 7164
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Re: analytical scoreboard

Post by Silvio.Falconi »

Antonio Linares wrote:Thanks to Rao, as in first column you have a number:

AScan( aData[ row ], { | n | n != 0 }, 2 ) == 0


Antonio the command not run ok

I explain you
If I insert on my cicle

Do While !oDbf:Eof()

aadd(aTab ,{................})



If AScan( atab[ nrow ], { | n | n != 0 }, 2 ) == 0


exit
else

nrow:=nrow+1
nrit:=nrit+1
oDbf:Skip(-1)
Endif

Enddo


it stop at 65 row as you can see here

Image



But I have a number until 121 row

Image

How I can resolve ?
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
User avatar
Antonio Linares
Site Admin
Posts: 42597
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 40 times
Been thanked: 86 times
Contact:

Re: analytical scoreboard

Post by Antonio Linares »

Dear Silvio,

I need a better explanation from you about what you need to be able to help you
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio.Falconi
Posts: 7164
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Re: analytical scoreboard

Post by Silvio.Falconi »

Antonio Linares wrote:Dear Silvio,

I need a better explanation from you about what you need to be able to help you

ascan must check if in the horizontal line there are still numbers, if there are not the while loop must end, however it is possible as in this case that the number of finds after n lines

On picture you can see the Number 15 on row 121, It mean the Number 15 have a delay of 121 extraction

But what does the analytical scoreboard procedure do? the procedure starts from the last record and in the first line (delay 0) puts all the 55 numbers out. From the second line (delay 1) he inserts the number he finds in the penultimate record but if a number is the same in the previous line / lines he does not write it but puts a zero. 0 (zero). Then the procedure continues with the third to last record omitting the numbers found in the previous lines. And so on until he has no more numbers to show. In our case the number 15 has been placed in line 121 this means that the number 15 has a delay of 121 extractions. I don't know how to check this. In the lot history it happened that a number had 299 draws late.
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
Post Reply