Sub Main
'''''Rileva ambo secco unito multiplo di 9 e 1 nr uguale su 2 ruote
'''''rileva nr uguale anche nell'estrazione precedente
Dim posta(5)
posta(2) = 1
posta(3) = 1
Dim acolpi(999)
storia = InputBox("Quante estrazioni indietro? ",,10)
lis = InputBox("Vuoi Ambate,Ambi o Terni 1,2,3 ",,1)
Ini = EstrazioneFin - storia
Scrivi " Ricerca di un ambo unito con distanza multipla di 9"
Scrivi " nella medesima estrazione su un'altra ruota deve essere presente un numero uguale dell'ambo unito"
Scrivi " e nell'estrazione precedente deve essere uscito medesimo numero"
Scrivi " Previsione Sottrarre 1 all'ambo unito, mantenendo fisso il nr uguale su 2 ruote"
Scrivi " "
Scrivi "______________________________________________________________________"
For es = Ini To EstrazioneFin
For r = 1 To 9
'''''rileva ambo secco unito multiplo di 9
''''''-------------------------------------------------------------------------------------------------
For qq = 1 To 4
qq2 = qq + 1
If Estratto(es,r,qq) < Estratto(es,r,qq2) Then
df = Estratto(es,r,qq2) - Estratto(es,r,qq)
If df = 9 Or df = 18 Or df = 27 Or df = 36 Or df = 45 Or df = 54 Or df = 63 Or df = 72 Or df = 81 Then
okey = 1
ambounito = Format2(Estratto(es,r,qq)) & " " & Format2(Estratto(es,r,qq2))
End If
Else
df = Estratto(es,r,qq) - Estratto(es,r,qq2)
If df = 9 Or df = 18 Or df = 27 Or df = 36 Or df = 45 Or df = 54 Or df = 63 Or df = 72 Or df = 81 Then
okey = 1
ambounito = Format2(Estratto(es,r,qq2)) & " " & Format2(Estratto(es,r,qq))
End If
End If
'''''--------------------------------------------------------------------------------------------
If okey = 1 Then
ReDim anum(3)
aa = Left(ambounito,2)
bb = Right(ambounito,2)
For r2 = 1 To 10
If Posizione(es,r2,aa) > 0 And r2 <> r Or Posizione(es,r2,bb) > 0 And r2 <> r Then
If Posizione(es - 1,r,aa) > 0 Or Posizione(es - 1,r2,aa) > 0 Then
casi = casi + 1
Scrivi
ColoreTesto 0:Scrivi "______________________________________________________________________"
ColoreTesto 0
Scrivi "--------" & es & " " & DataEstrazione(es) & "...Ruota.." & NomeRuota(r) & "\" & NomeRuota(r2) & "....ambounito.." & ambounito
anum(1) = Fuori90(aa - 1)
anum(2) = Fuori90(bb - 1)
anum(3) = Fuori90(aa)
ColoreTesto 2
Scrivi "--------Previsione..." & anum(3) & " " & anum(1) & " " & anum(2)
ColoreTesto 1
Scrivi "--------" & es & " " & DataEstrazione(es) & "...ruota.." & NomeRuota(r) & " nr = su ruota.." & StringaEstratti(es,r) & ".." & NomeRuota(r2) & "...." & StringaEstratti(es,r2)
ColoreTesto 1
Scrivi "--------" & es - 1 & " " & DataEstrazione(es - 1) & "...ruota.." & NomeRuota(r) & " nr = su ruota.." & StringaEstratti(es - 1,r) & ".." & NomeRuota(r2) & "...." & StringaEstratti(es - 1,r2)
Scrivi "Esiti:"
End If
If Posizione(es - 1,r,bb) > 0 Or Posizione(es - 1,r2,bb) > 0 Then
casi = casi + 1
ColoreTesto 0:Scrivi "______________________________________________________________________"
ColoreTesto 0
Scrivi "--------" & es & " " & DataEstrazione(es) & "...ruota.." & NomeRuota(r) & "\" & NomeRuota(r2) & "....ambounito.." & ambounito
ColoreTesto 2
anum(1) = Fuori90(aa - 1)
anum(2) = Fuori90(bb - 1)
anum(3) = Fuori90(bb)
Scrivi "--------Previsione..." & anum(3) & " " & anum(1) & " " & anum(2)
ColoreTesto 1
Scrivi "--------" & es & " " & DataEstrazione(es) & "...ruota.." & NomeRuota(r) & " nr = su ruota.." & StringaEstratti(es,r) & ".." & NomeRuota(r2) & "...." & StringaEstratti(es,r2)
ColoreTesto 1
Scrivi "--------" & es - 1 & " " & DataEstrazione(es - 1) & "...ruota.." & NomeRuota(r) & " nr = su ruota.." & StringaEstratti(es - 1,r) & ".." & NomeRuot