Mike58
Advanced Member >PLATINUM PLUS<
Numeri per Mese
	
	
	
		
Quantità per ogni numero estratto DA ANNO N.2005 FINO ANNO N.2022 sulla ruota di To nel MESE di Febbraio
				
			
		Codice:
	
	Class Script
    Sub Main()
        Dim x(90),ru(1),nu(1),aNum()  As Integer
        Dim r As Integer = InputBox("Inserisci la ruota di ricerca","RUOTA",9)
        Dim kk As Integer = CInt(InputBox("Inserisci mese di ricerca","MESE",Month(Now)))
        Dim An1 As Integer = CInt(InputBox("Inserisci INIZIO ANNO di ricerca","ANNO",2009))
        Dim An2 As Integer  = CInt(InputBox("Inserisci FINE ANNO di ricerca","ANNO",Year(Now)))
        Dim ini As Integer = 1
        Dim fin As Integer = EstrazioniArchivio
        Dim T(),aUscita(),esito  As String
        Dim a,n,e,n1,i,ind,ess,er,sf,k,xx,clp As Integer
        T = {"Numero","Presenza","Verifica Mese Corrente","ID Data","colpo","Ritardo","Presenze Mese"}
        Call InitTabella(T,ColoreVerde,,,ColoreBianco )
        For a = 1 To 90
            x(a) = 0
        Next
        For n = ini To fin
            If Mese(n) = kk And Anno(n) >= An1 And Anno(n) <= An2 Then
                'For r=1 To 10
                ru(1) = r
                For e = 1 To 5
                    n1 = Estratto(n,r,e)
                    x(n1) = x(n1) + 1
                Next
                'Next
            End If
        Next
        Scrivi (" Quantità per ogni numero estratto DA ANNO N." & An1 & " FINO ANNO N." & An2 & " sulla ruota di " & NomeRuota(r) & " nel MESE di " & MeseNome(kk),1)
        For i = 1 To 90
            nu(1) = i
            ind = IndiceMensile(fin)
            ess = fin - ind '
            esito = "--"
            If VerificaEsito(nu,ru,1,ess+1,,13,clp,aUscita)
                For k1 As Integer = 0 To aUscita.GetUpperBound(0)
                    If aUscita(k1) <> "" Then esito = aUscita(k1)
                Next
            End If
            er = EstrattoRitardo(i,r, ini,fin)
            sf = SerieFrequenza (nu,ru,1,ess+1,fin )
            If EstrattoFrequenza(i,r, ess,fin) > 0 Then
                k +=1
                ReDim Preserve aNum(k)
                aNum(k) = i
            End If
            T  = { i ,x(i) ,esito ,GetInfoEstrazione(ess+clp ),clp,er,sf }
            Call AddRigaTabella(T)
            For xx = 0 To 7
                If er = 0 Then Call SetColoreCellaRighe ((xx),ColoreMagenta,ColoreBianco )
                If sf > 0 And er > 0 Then Call SetColoreCellaRighe ((xx),ColoreRosa,ColoreNero )
            Next
        Next
        CreaTabella(1)
        Call Scrivi("Numeri Sortiti Nel Mese corrente..... " & StringaNumeri(aNum) & "  ( " & k & " )",1)
    End Sub
End Class
	Quantità per ogni numero estratto DA ANNO N.2005 FINO ANNO N.2022 sulla ruota di To nel MESE di Febbraio
Numero  | Presenza  | Verifica Mese Corrente  | ID Data  | colpo  | Ritardo  | Presenze Mese  | 
|---|---|---|---|---|---|---|
51  | 24  | --  | 10040 - 173 - 08/02/2022  | 4  | 8  | 0  | 
30  | 23  | To --.30.--.--.--  | 10039 - 172 - 05/02/2022  | 3  | 1  | 1  | 
85  | 21  | --  | 10040 - 173 - 08/02/2022  | 4  | 10  | 0  | 
41  | 19  | --  | 10040 - 173 - 08/02/2022  | 4  | 4  | 0  | 
76  | 18  | To --.--.--.--.76  | 10038 - 171 - 03/02/2022  | 2  | 2  | 1  |