Novità

Per salvo50 o altro esperto una cortesia x un listato semplice...

Matematico

Advanced Member >PLATINUM<
Buongiorno a tutti , per velocizzare la ricerca avrei bisogno cortesemente di uno script che mi vada a ricercare su qualsiasi ruota e posizione 4 estratti che diano somma 90 .

Esempio del 27/1/2018

Torino - 79.04.46.74.51 * 79+04+46+51 = 180 ( 90)
 
Ciao Matematico

Ho marcato di rosso l'estratto rimanente, cioè la somma 90 è nei 4 estratti non marcati


Codice:
Option Explicit
Sub Main
   Dim FIn,Ini,P1,E1,A,B,C,D,E,Es,R1,Casi,Caso,Somma,X,Salvo50,S1
   FIn = EstrazioneFin
   Ini = CInt(InputBox("Inserisci l'estrazione che vuoi iniziare",Salvo50,10170))
   Call ScegliRange(Ini,FIn,Ini,FIn)
   Scrivi Space(13) & "SOMMA 90 DI QUATTRO ESTRATTI - SCRIPT SALVO50" & Space(13),1,,4,,3,,1
   For Es = Ini To FIn
      Messaggio Es
      AvanzamentoElab Ini,FIn,Es
      Caso = 0
      For R1 = 1 To 12
         If R1 = 11 Then R1 = 12
         Somma = SommaEstratti(Es,R1)
         A = Estratto(Es,R1,1)
         B = Estratto(Es,R1,2)
         C = Estratto(Es,R1,3)
         D = Estratto(Es,R1,4)
         E = Estratto(Es,R1,5)
         X = Somma
         If(X Mod 90 = A) Or(X Mod 90 = B)Or(X Mod 90 = C)Or(X Mod 90 = D)Or(X Mod 90 = E)Then
            If X Mod 90 = A Then S1 = A
            If X Mod 90 = B Then S1 = B
            If X Mod 90 = C Then S1 = C
            If X Mod 90 = D Then S1 = D
            If X Mod 90 = E Then S1 = E
            Caso = Caso + 1
            Casi = Casi + 1
            Scrivi String(90,"-") & " Casi Totali " & FormattaStringa(Casi,"0000"),1,,,1
            Scrivi String(80,"-") & " Estrazione " &(Es) & " caso " & FormattaStringa(Caso,"0000"),1,,,2
            Scrivi(" Estrazione n." & Format2(Es) & " del " & DataEstrazione(Es)),1,0
            Scrivi "  " & SiglaRuota(R1) & " ",1,0
            For P1 = 1 To 5
               E1 = Estratto(Es,R1,P1)
               If E1 = S1 Then
                  ColoreTesto 2
               Else
                  ColoreTesto 0
               End If
               Scrivi Format2(E1) & " ",1,0
               ColoreTesto 0
            Next
            Scrivi
         End If
      Next
      If ScriptInterrotto Then Exit Sub
   Next
   Scrivi " Tempo Trascorso" & TempoTrascorso
End Sub
 
Ultima modifica:

Ultima estrazione Lotto

  • Estrazione del lotto
    martedì 15 luglio 2025
    Bari
    60
    18
    12
    57
    28
    Cagliari
    20
    26
    81
    55
    18
    Firenze
    28
    59
    46
    83
    81
    Genova
    32
    57
    09
    41
    17
    Milano
    58
    31
    49
    38
    63
    Napoli
    36
    58
    57
    45
    59
    Palermo
    03
    05
    48
    86
    62
    Roma
    47
    18
    01
    23
    79
    Torino
    56
    34
    49
    89
    90
    Venezia
    46
    44
    52
    82
    78
    Nazionale
    16
    36
    15
    13
    60
    Estrazione Simbolotto
    Nazionale
    27
    09
    44
    18
    11

Ultimi Messaggi

Indietro
Alto