analytical scoreboard - Resolved -

analytical scoreboard - Resolved -

Postby Silvio.Falconi » Tue May 17, 2022 10:46 am

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 November 2023 - January 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: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: analytical scoreboard

Postby Antonio Linares » Tue May 17, 2022 11:47 am

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: analytical scoreboard

Postby Antonio Linares » Tue May 17, 2022 11:56 am

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
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: analytical scoreboard

Postby Silvio.Falconi » Tue May 17, 2022 12:04 pm

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 November 2023 - January 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: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: analytical scoreboard

Postby Silvio.Falconi » Wed May 25, 2022 5:17 pm

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 November 2023 - January 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: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: analytical scoreboard

Postby Antonio Linares » Wed May 25, 2022 9:56 pm

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
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: analytical scoreboard

Postby Silvio.Falconi » Wed May 25, 2022 11:31 pm

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 November 2023 - January 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: 7061
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 78 guests

cron