Novità

x mike58

Zetrix

Advanced Premium Member
ciao mike vorrei tabellare questo listato in spaziolight ma mi da errore lo script

Codice:
Class Script
    Sub Main
        Dim Nu(9),Na(10),aN(5),Ru(1),Rt(7),Num1,Num2,Num3,Num4,Num5,Num6,Num7,Num8,Num9,Num10 As Integer
        Dim x, w, j , y ,a(7) , k, s , z , r , es ,Ruota  As Integer
        Dim ini As Integer = EstrazioniArchivio
        Dim fin As Integer = EstrazioniArchivio
        Dim aUscite(),esito,aUscite2(),esito2 As String
        Dim n1(2),n2(2),RuotaGioco(2),clp,clp2  As Integer
        x = InputBox("Quale 1 numero vuoi tabellare ?",,0)
        y = InputBox("Quale 2 numero vuoi tabellare ?",,0)
        For Ruota = 1 To 11
            For es = ini To fin
                Dim T() , stesto As String
                T = {" Ruota "," E1 "," E2 " ," Ruota "," Rt1"," Rt2"," Ruota","  Rt3 "," Data "}
                Call InitTabella(T,RGB(73,180,47),,,RGB(200,200,250),,"Dubai Light")
                RuotaGioco(1) = 11
                RuotaGioco(2) = 12
                aN(1) = Format2(x)
                aN(2) = Format2(y)
                a(1) = EstrattoRitardo(es,Ruota,x)
                a(2) = EstrattoRitardo(es,Ruota,y)
                a(3) = AmboRitardo(es,Ruota,x,y)
                Rt(1) = a(1)
                Rt(2) = a(2)
                Rt(3) = a(3)
                '----------------------------------------------------------------------------------
                T = {NomeRuota(Ruota),aN(1),aN(2),NomeRuota(Ruota),Rt(1),Rt(2),NomeRuota(Ruota),Rt(3),DataEstrazione(es)}
                Call AddRigaTabella(T,RGB(0,0,128),,,RGB(200,200,250),,"Dubai Light")
                'x = 0                  ' -> evidenzia numero in tabella
                'y = 0
                'If aN(1) And y =  Rt(1) Then Call SetColoreCellaRighe (1,RGB(255,204,0),RGB(0,0,255))
                'If aN(1) And y =  Rt(2) Then Call SetColoreCellaRighe (1,RGB(255,204,0),RGB(0,0,255))
                'If aN(1) And y =  Rt(3) Then Call SetColoreCellaRighe (1,RGB(255,204,0),RGB(0,0,255))
                'If aN(2) And y =  Rt(1) Then Call SetColoreCellaRighe (2,RGB(255,204,0),RGB(0,0,255))
                'If aN(2) And y =  Rt(2) Then Call SetColoreCellaRighe (2,RGB(255,204,0),RGB(0,0,255))
                'If aN(2) And y =  Rt(3) Then Call SetColoreCellaRighe (2,RGB(255,204,0),RGB(0,0,255))
                Call SetColoreCellaRighe(0,RGB(0,0,180),RGB(200,200,250))
                Call SetColoreCellaRighe(3,RGB(0,0,180),RGB(200,200,250))
                Call SetColoreCellaRighe(5,RGB(253,233,16),RGB(0,0,255))
                Call SetColoreCellaRighe(7,RGB(0,0,180),RGB(200,200,250))
                Call SetColoreCellaRighe(8,RGB(0,0,128),RGB(200,200,250))
                Call SetColoreCellaRighe(9,RGB(253,233,16),RGB(0,0,255))
                Call SetColoreCellaRighe(10,RGB(0,0,128),RGB(200,200,250))
                'Next
                CreaTabella
                'Scrivi (NomeRuota(Ruota) & " " & stesto)
            Next
        Next
    End Sub
End Class
 
Ultima modifica:
mike questo listato lo fatto in spaziometria ma vorrei tabellare
questo listato in spaziolight

Codice:
Sub Main
   Dim es,k,x,y,r1
   Dim num1(2),num2(2),num3(2),num4(2),num5(2),num6(2),num7(2),num8(2)
   x = InputBox("Quale 1 numero vuoi controllare?",,0)
   y = InputBox("Quale 2 numero vuoi controllare?",,0)
   For es = EstrazioneFin To EstrazioneFin
      AvanzamentoElab EstrazioneFin,EstrazioneFin,es
      For r1 = 1 To 10
         num1(1) = EstrattoRitardo(r1,x)
         num2(1) = EstrattoRitardo(r1,y)
         num3(1) = Format2(num1(1))
         num4(1) = Format2(num2(1))
         num5(1) = AmboRitardo(r1,x,y)
         num6(1) = Format2(num1(1))
         num7(1) = Format2(num2(1))
         num8(1) = AmboRitardo(TT_,x,y)

         ' Rit per estratto
         Scrivi Left(NomeRuota(r1),2) & Space(2) & x & " " & y & Space(2) & "= " & "Re" & Space(2) & StringaNumeri(num3) & Space(2) & StringaNumeri(num4) & "",0,1,1,5,5
         Scrivi Left(NomeRuota(r1),2) & Space(2) & x & " " & y & Space(2) & "= " & "Ra" & Space(2) & StringaNumeri(num5) & "",0,1,3,7,5
      Next
   Next
   Scrivi
   ' Rit per ambo
   Scrivi Left(NomeRuota(TT_),2) & Space(2) & x & " " & y & Space(2) & "= " & "Rt" & Space(2) & StringaNumeri(num8) & "",0,1,1,5,5
End Sub
 
Ultima modifica:
1 ° script ci sono errori di codici te li ho remmati, così li vedi e ti impegni a leggere le guide codici.
Poi se devi fare una statistica globale non ti serve il ciclo for delle estrazioni.

Codice:
Class Script
    Sub Main
        Dim Nu(9),Na(10),aN(5),Ru(1),Rt(7),Num1,Num2,Num3,Num4,Num5,Num6,Num7,Num8,Num9,Num10 As Integer
        Dim x, w, j , y ,a(7) , k, s , z , r , es ,Ruota  As Integer
        Dim ini As Integer = 1'EstrazioniArchivio
        Dim fin As Integer = EstrazioniArchivio
        Dim aUscite(),esito,aUscite2(),esito2 As String
        Dim n1(2),n2(2),RuotaGioco(2),clp,clp2  As Integer
        x = InputBox("Quale 1 numero vuoi tabellare ?",,0)
        y = InputBox("Quale 2 numero vuoi tabellare ?",,0)
        For Ruota = 1 To 11
            'For es = ini To fin
                Dim T() , stesto As String
                T = {" Ruota "," E1 "," E2 " ," Ruota "," Rt1"," Rt2"," Ruota","  Rt3 "," Data "}
                Call InitTabella(T,RGB(73,180,47),,,RGB(200,200,250),,"Dubai Light")
                RuotaGioco(1) = 11
                RuotaGioco(2) = 12
                aN(1) = Format2(x)
                aN(2) = Format2(y)

                'a(1) = EstrattoRitardo(es,Ruota,x)
                'a(2) = EstrattoRitardo(es,Ruota,y)
                'a(3) = AmboRitardo(es,Ruota,x,y)
                a(1) = EstrattoRitardo(x,Ruota,ini,fin)
                a(2) = EstrattoRitardo(y,Ruota,ini,fin)
                a(3) = AmboRitardo(x,y,Ruota,fin )
                Rt(1) = a(1)
                Rt(2) = a(2)
                Rt(3) = a(3)
                '----------------------------------------------------------------------------------
                T = {NomeRuota(Ruota),aN(1),aN(2),NomeRuota(Ruota),Rt(1),Rt(2),NomeRuota(Ruota),Rt(3),DataEstrazione(es)}
                Call AddRigaTabella(T,RGB(0,0,128),,,RGB(200,200,250),,"Dubai Light")
                'x = 0                  ' -> evidenzia numero in tabella
                'y = 0
                'If aN(1) And y =  Rt(1) Then Call SetColoreCellaRighe (1,RGB(255,204,0),RGB(0,0,255))
                'If aN(1) And y =  Rt(2) Then Call SetColoreCellaRighe (1,RGB(255,204,0),RGB(0,0,255))
                'If aN(1) And y =  Rt(3) Then Call SetColoreCellaRighe (1,RGB(255,204,0),RGB(0,0,255))
                'If aN(2) And y =  Rt(1) Then Call SetColoreCellaRighe (2,RGB(255,204,0),RGB(0,0,255))
                'If aN(2) And y =  Rt(2) Then Call SetColoreCellaRighe (2,RGB(255,204,0),RGB(0,0,255))
                'If aN(2) And y =  Rt(3) Then Call SetColoreCellaRighe (2,RGB(255,204,0),RGB(0,0,255))
                Call SetColoreCellaRighe(0,RGB(0,0,180),RGB(200,200,250))
                Call SetColoreCellaRighe(3,RGB(0,0,180),RGB(200,200,250))
                Call SetColoreCellaRighe(5,RGB(253,233,16),RGB(0,0,255))
                Call SetColoreCellaRighe(7,RGB(0,0,180),RGB(200,200,250))
                Call SetColoreCellaRighe(8,RGB(0,0,128),RGB(200,200,250))
                Call SetColoreCellaRighe(9,RGB(253,233,16),RGB(0,0,255))
                Call SetColoreCellaRighe(10,RGB(0,0,128),RGB(200,200,250))
                'Next
                CreaTabella
                'Scrivi (NomeRuota(Ruota) & " " & stesto)
            Next
        'Next
    End Sub
End Class
 
il 2° script mi sembra la fotocopia del 1° con alcune varianti.
Visto che hai già lo script corretto puoi esercitarti a farlo da te.
Se poi non dovessi riuscire vedrò quello e dove posso aiutarti.

Ciao
 
grazie mike lo sistemata la tabella
ciao


Codice:
Class Script
    Sub Main
        Dim Nu(9),Na(10),aN(5),Ru(1),Rt(7),Num1,Num2,Num3,Num4,Num5,Num6,Num7,Num8,Num9,Num10 As Integer
        Dim x, w, j , y ,a(7) , k, s , z , r , es ,Ruota  As Integer
        Dim ini As Integer = 1
        Dim fin As Integer = EstrazioniArchivio
        Dim aUscite(),esito,aUscite2(),esito2 As String
        Dim n1(2),n2(2),RuotaGioco(2),clp,clp2  As Integer
        x = InputBox("Quale 1 numero vuoi tabellare ?",,0)
        y = InputBox("Quale 2 numero vuoi tabellare ?",,0)
        Dim T(2) , stesto As String
        T = {" Ruota "," N1 "," N2 " ," Ruota "," Rt1"," Rt2"," Ruota","  RtAmbo "," Data "}
        Call InitTabella(T,RGB(73,180,47),,,RGB(200,200,250),,"Dubai Light")
        For Ruota = 1 To 11
            aN(1) = Format2(x)
            aN(2) = Format2(y)
            a(1) = EstrattoRitardo(x,Ruota,ini,fin)
            a(2) = EstrattoRitardo(y,Ruota,ini,fin)
            a(3) = AmboRitardo(x,y,Ruota,fin )
            Rt(1) = a(1)
            Rt(2) = a(2)
            Rt(3) = a(3)
            '----------------------------------------------------------------------------------
            T = {NomeRuota(Ruota),aN(1),aN(2),NomeRuota(Ruota),Rt(1),Rt(2),NomeRuota(Ruota),Rt(3),DataEstrazione(EstrazioniArchivio)}
            Call AddRigaTabella(T,RGB(0,0,128),,,RGB(200,200,250),,"Dubai Light")
            Call SetColoreCellaRighe(0,RGB(0,0,128),RGB(200,200,250))
            Call SetColoreCellaRighe(1,RGB(0,0,128),RGB(200,200,250))
            Call SetColoreCellaRighe(2,RGB(0,0,128),RGB(200,200,250))
            Call SetColoreCellaRighe(3,RGB(0,0,128),RGB(200,200,250))
            Call SetColoreCellaRighe(4,RGB(253,233,16),RGB(0,0,255))
            Call SetColoreCellaRighe(5,RGB(253,233,16),RGB(0,0,255))
            Call SetColoreCellaRighe(6,RGB(0,0,128),RGB(200,200,250))
            Call SetColoreCellaRighe(7,RGB(253,233,16),RGB(0,0,255))
            Call SetColoreCellaRighe(8,RGB(0,0,128),RGB(200,200,250))
            Call SetColoreCellaRighe(9,RGB(253,233,16),RGB(0,0,255))
            Call SetColoreCellaRighe(10,RGB(0,0,128),RGB(200,200,250))
            If Rt(1) < 6 Then Call SetColoreCellaRighe (4,RGB(222,49,99),RGB(200,200,250))
            If Rt(2) < 6 Then Call SetColoreCellaRighe (5,RGB(222,49,99),RGB(200,200,250))
        Next
        CreaTabella
    End Sub
End Class
 

Ultima estrazione Lotto

  • Estrazione del lotto
    sabato 28 novembre 2026
    Bari
    13
    25
    55
    38
    16
    Cagliari
    63
    68
    42
    85
    04
    Firenze
    43
    67
    77
    40
    32
    Genova
    77
    04
    33
    24
    12
    Milano
    80
    79
    39
    29
    31
    Napoli
    17
    84
    62
    59
    89
    Palermo
    88
    14
    11
    30
    55
    Roma
    05
    37
    24
    48
    26
    Torino
    69
    25
    57
    19
    59
    Venezia
    40
    10
    82
    63
    32
    Nazionale
    13
    65
    15
    04
    64
    Estrazione Simbolotto
    Torino
    07
    01
    22
    04
    38

Ultimi Messaggi

Indietro
Alto