Zetrix
Banned
Codice:
[CODE] Sub Main()
T = "***** SOMME E DISTANZE TRA GLI ESTRATTI BY BLACKMORE *****"
Call Scrivi(T & K,True,,vbBlue,5,4):Scrivi
Scrivi "Questo Script mostra somme e distanze tra gli estratti",1,,,,3
Scrivi "nella stessa Posizione su 2 ruote a scelta, evidenziando",1,,,,3
Scrivi "le somme e le distanze uguali multiple(Ambi Isotopi stessa somma e/o distanza)",1,,,,3 :Scrivi
ReDim title(15)
title(1) = " Data "
title(2) = " 1°Ruota "
title(3) = " 1°Ruota "
title(4) = " Estratti 1°Ruota "
title(5) = " Estratti 1°Ruota "
title(6) = " Som 1° "
title(7) = " Som 2° "
title(8) = " Som 3° "
title(9) = " Som 4° "
title(10) = " Som 5° "
title(11) = " Dis 1° "
title(12) = " Dis 2° "
title(13) = " Dis 3° "
title(14) = " Dis 4° "
title(15) = " Dis 5° "
Call InitTabella(title,RGB(116,116,116),,2,5)
r1 = CInt(InputBox("SCEGLI LA 1° RUOTA DI RICERCA",,1))
r2 = CInt(InputBox("SCEGLI LA 2° RUOTA DI RICERCA",,1))
ii = InputBox("QUANTE ESTRAZIONI VUOI ESAMINARE ?",,30)
fin = EstrazioneFin
Ini = fin - ii
For es = Ini To fin
som1 = Fuori90(Estratto(es,r1,1) + Estratto(es,r1,2))
som2 = Fuori90(Estratto(es,r1,1) + Estratto(es,r1,3))
som3 = Fuori90(Estratto(es,r1,1) + Estratto(es,r1,4))
som4 = Fuori90(Estratto(es,r1,1) + Estratto(es,r1,5))
'som5 = Fuori90(Estratto(es,r1,1) + Estratto(es,r1,5))
dis1 = Distanza(Estratto(es,r1,1),Estratto(es,r1,2))
dis2 = Distanza(Estratto(es,r1,1),Estratto(es,r1,3))
dis3 = Distanza(Estratto(es,r1,1),Estratto(es,r1,4))
dis4 = Distanza(Estratto(es,r1,1),Estratto(es,r1,5))
'dis5 = Distanza(Estratto(es,r1,1),Estratto(es,r1,5))
If dis1 = 90 Then dis1 = 0
If dis2 = 90 Then dis2 = 0
If dis3 = 90 Then dis3 = 0
If dis4 = 90 Then dis4 = 0
If dis5 = 90 Then dis5 = 0
ReDim Value(15)
Value(01) = DataEstrazione(es)
Value(02) = NomeRuota(r1)
Value(03) = NomeRuota(r2)
Value(04) = StringaEstratti(es,r1)
Value(05) = StringaEstratti(es,r2)
Value(06) = som1
Value(07) = som2
Value(08) = som3
Value(09) = som4
Value(10) = som5
Value(11) = Dis1
Value(12) = Dis2
Value(13) = Dis3
Value(14) = Dis4
Value(15) = Dis5
Call AddRigaTabella(Value,,,4,,1)
Call SetColoreCella(1,RGB(116,116,116),5)
Call SetColoreCella(2,RGB(239,239,239),1)
Call SetColoreCella(3,RGB(251,251,251),RGB(217,0,0))
Call SetColoreCella(4,RGB(239,239,239),1)
Call SetColoreCella(5,RGB(251,251,251),RGB(217,0,0))
Call SetColoreCella(6,vbYellow)
Call SetColoreCella(7,vbYellow)
Call SetColoreCella(8,vbYellow)
Call SetColoreCella(9,vbYellow)
Call SetColoreCella(10,vbYellow)
Call SetColoreCella(11,vbCyan)
Call SetColoreCella(12,vbCyan)
Call SetColoreCella(13,vbCyan)
Call SetColoreCella(14,vbCyan)
Call SetColoreCella(15,vbCyan)
If som5 = som4 Then: Call SetColoreCella(10,RGB(223,0,223),5):If som5 = som4 Then Call SetColoreCella(9,RGB(223,0,223),5)
If som5 = som3 Then: Call SetColoreCella(10,RGB(223,0,223),5):If som5 = som3 Then Call SetColoreCella(8,RGB(223,0,223),5)
If som5 = som2 Then: Call SetColoreCella(10,RGB(223,0,223),5):If som5 = som2 Then Call SetColoreCella(7,RGB(223,0,223),5)
If som5 = som1 Then: Call SetColoreCella(10,RGB(223,0,223),5):If som5 = som1 Then Call SetColoreCella(6,RGB(223,0,223),5)
If som4 = som3 Then: Call SetColoreCella(9,RGB(223,0,223),5):If som4 = som3 Then Call SetColoreCella(8,RGB(223,0,223),5)
If som4 = som2 Then: Call SetColoreCella(9,RGB(223,0,223),5):If som4 = som2 Then Call SetColoreCella(7,RGB(223,0,223),5)
If som4 = som1 Then: Call SetColoreCella(9,RGB(223,0,223),5):If som4 = som1 Then Call SetColoreCella(6,RGB(223,0,223),5)
If som3 = som2 Then: Call SetColoreCella(8,RGB(223,0,223),5):If som3 = som2 Then Call SetColoreCella(7,RGB(223,0,223),5)
If som3 = som1 Then: Call SetColoreCella(8,RGB(223,0,223),5):If som3 = som1 Then Call SetColoreCella(6,RGB(223,0,223),5)
If som2 = som1 Then: Call SetColoreCella(7,RGB(223,0,223),5):If som2 = som1 Then Call SetColoreCella(6,RGB(223,0,223),5)
If dis5 = dis4 Then: Call SetColoreCella(15,RGB(150,75,75),5):If dis5 = dis4 Then Call SetColoreCella(14,RGB(150,75,75),5)
If dis5 = dis3 Then: Call SetColoreCella(15,RGB(150,75,75),5):If dis5 = dis3 Then Call SetColoreCella(13,RGB(150,75,75),5)
If dis5 = dis2 Then: Call SetColoreCella(15,RGB(150,75,75),5):If dis5 = dis2 Then Call SetColoreCella(12,RGB(150,75,75),5)
If dis5 = dis1 Then: Call SetColoreCella(15,RGB(150,75,75),5):If dis5 = dis1 Then Call SetColoreCella(11,RGB(150,75,75),5)
If dis4 = dis3 Then: Call SetColoreCella(14,RGB(150,75,75),5):If dis4 = dis3 Then Call SetColoreCella(13,RGB(150,75,75),5)
If dis4 = dis2 Then: Call SetColoreCella(14,RGB(150,75,75),5):If dis4 = dis2 Then Call SetColoreCella(12,RGB(150,75,75),5)
If dis4 = dis1 Then: Call SetColoreCella(14,RGB(150,75,75),5):If dis4 = dis1 Then Call SetColoreCella(11,RGB(150,75,75),5)
If dis3 = dis2 Then: Call SetColoreCella(13,RGB(150,75,75),5):If dis3 = dis2 Then Call SetColoreCella(12,RGB(150,75,75),5)
If dis3 = dis1 Then: Call SetColoreCella(13,RGB(150,75,75),5):If dis3 = dis1 Then Call SetColoreCella(11,RGB(150,75,75),5)
If dis2 = dis1 Then: Call SetColoreCella(12,RGB(150,75,75),5):If dis2 = dis1 Then Call SetColoreCella(11,RGB(150,75,75),5)
Next
Call CreaTabella()
End Sub
[/CODE]
Ultima modifica: