Ho provato a modificare qualcosa io....ma vista la mia scarsa competenza ,mi è venuto fuori questo....funziona ma non si vede l'utilità. .bisognerebbe fare in modo che cerchi le combinazioni non concluse a cui manca più di un numero!....
Scrivi "Prima della conclusione della cinquina (Cinzia) x 10eLotto?" & Chr(10)
ColoreTesto 6
Scrivi String(80,"*")
ColoreTesto 0
Sub Main()
ImpostaArchivio10ELotto(1)
Dim n1(1),n2(1),n3(1),n4(1),n5(1),n6(1),n7(1),n8(1),n9(1),n10(1),n11(1),n12(1),n13(1),n14(1),n15(1),n16(1),n17(1),n18(1),n19(1),n20(1),nu(20),nr(20)
Dim s(20)
fin = EstrazioneFinDL
ini = EstrazioneFinDL - 100
Scrivi "Estrazione finale " & Fin:Scrivi
For es = ini To fin
Messaggio(es)
'For r = 1 To 11
'If r = 11 Then r = 12
'ru(1) = r
n1(1) = EstrattoDL(es,1)
n2(1) = EstrattoDL(es,2)
n3(1) = EstrattoDL(es,3)
n4(1) = EstrattoDL(es,4)
n5(1) = EstrattoDL(es,5)
n6(1) = EstrattoDL(es,6)
n7(1) = EstrattoDL(es,7)
n8(1) = EstrattoDL(es,8)
n9(1) = EstrattoDL(es,9)
n10(1) = EstrattoDL(es,10)
n11(1) = EstrattoDL(es,11)
n12(1) = EstrattoDL(es,12)
n13(1) = EstrattoDL(es,13)
n14(1) = EstrattoDL(es,14)
n15(1) = EstrattoDL(es,15)
n16(1) = EstrattoDL(es,16)
n17(1) = EstrattoDL(es,17)
n18(1) = EstrattoDL(es,18)
n19(1) = EstrattoDL(es,19)
n20(1) = EstrattoDL(es,20)
nr(1) = n1(1)
nr(2) = n2(1)
nr(3) = n3(1)
nr(4) = n4(1)
nr(5) = n5(1)
nr(6) = n6(1)
nr(7) = n7(1)
nr(8) = n8(1)
nr(9) = n9(1)
nr(10) = n10(1)
nr(11) = n11(1)
nr(12) = n12(1)
nr(13) = n13(1)
nr(14) = n14(1)
nr(15) = n15(1)
nr(16) = n16(1)
nr(17) = n17(1)
nr(18) = n18(1)
nr(19) = n19(1)
nr(20) = n20(1)
fra = SerieFreqDL(es + 1,fin - 1,nr,1)
'If fra>15 Then
ex = es + 1
If ex <= fin Then
s(1) = SeriePrimaDL(ex,fin - 1,n1,1)
s(2) = SeriePrimaDL(ex,fin - 1,n2,1)
s(3) = SeriePrimaDL(ex,fin - 1,n3,1)
s(4) = SeriePrimaDL(ex,fin - 1,n4,1)
s(5) = SeriePrimaDL(ex,fin - 1,n5,1)
s(6) = SeriePrimaDL(ex,fin - 1,n6,1)
s(7) = SeriePrimaDL(ex,fin - 1,n7,1)
s(8) = SeriePrimaDL(ex,fin - 1,n8,1)
s(9) = SeriePrimaDL(ex,fin - 1,n9,1)
s(10) = SeriePrimaDL(ex,fin - 1,n10,1)
s(11) = SeriePrimaDL(ex,fin - 1,n11,1)
s(12) = SeriePrimaDL(ex,fin - 1,n12,1)
s(13) = SeriePrimaDL(ex,fin - 1,n13,1)
s(14) = SeriePrimaDL(ex,fin - 1,n14,1)
s(15) = SeriePrimaDL(ex,fin - 1,n15,1)
s(16) = SeriePrimaDL(ex,fin - 1,n16,1)
s(17) = SeriePrimaDL(ex,fin - 1,n17,1)
s(18) = SeriePrimaDL(ex,fin - 1,n18,1)
s(19) = SeriePrimaDL(ex,fin - 1,n19,1)
s(20) = SeriePrimaDL(ex,fin - 1,n20,1)
OrdinaMatrice s,1
If s(1) = 0 And s(2) > 0 Then
'If s(5)=0 Or s(4)=0 Or s(3)=0 Or s(2)=0 Or s(1)=0 Then
rt = fin - es
Scrivi es & " " & StringaEstrattiDL(es) & " " & FormatSpace(rt,9,1) & " ---> ",0,0
frr1 = SerieFreqDL(es + 1,fin - 1,n1,1)
frr2 = SerieFreqDL(es + 1,fin - 1,n2,1)
frr3 = SerieFreqDL(es + 1,fin - 1,n3,1)
frr4 = SerieFreqDL(es + 1,fin - 1,n4,1)
frr5 = SerieFreqDL(es + 1,fin - 1,n5,1)
frr6 = SerieFreqDL(es + 1,fin - 1,n6,1)
frr7 = SerieFreqDL(es + 1,fin - 1,n7,1)
frr8 = SerieFreqDL(es + 1,fin - 1,n8,1)
frr9 = SerieFreqDL(es + 1,fin - 1,n9,1)
frr10 = SerieFreqDL(es + 1,fin - 1,n10,1)
frr11 = SerieFreqDL(es + 1,fin - 1,n11,1)
frr12 = SerieFreqDL(es + 1,fin - 1,n12,1)
frr13 = SerieFreqDL(es + 1,fin - 1,n13,1)
frr14 = SerieFreqDL(es + 1,fin - 1,n14,1)
frr15 = SerieFreqDL(es + 1,fin - 1,n15,1)
frr16 = SerieFreqDL(es + 1,fin - 1,n16,1)
frr17 = SerieFreqDL(es + 1,fin - 1,n17,1)
frr18 = SerieFreqDL(es + 1,fin - 1,n18,1)
frr19 = SerieFreqDL(es + 1,fin - 1,n19,1)
frr20 = SerieFreqDL(es + 1,fin - 1,n20,1)
If frr1 > 0 Then Scrivi Format2(n1(1)) & " ",0,0
If frr2 > 0 Then Scrivi Format2(n2(1)) & " ",0,0
If frr3 > 0 Then Scrivi Format2(n3(1)) & " ",0,0
If frr4 > 0 Then Scrivi Format2(n4(1)) & " ",0,0
If frr5 > 0 Then Scrivi Format2(n5(1)) & " ",0,0
If frr6 > 0 Then Scrivi Format2(n6(1)) & " ",0,0
If frr7 > 0 Then Scrivi Format2(n7(1)) & " ",0,0
If frr8 > 0 Then Scrivi Format2(n8(1)) & " ",0,0
If frr9 > 0 Then Scrivi Format2(n9(1)) & " ",0,0
If frr10 > 0 Then Scrivi Format2(n10(1)) & " ",0,0
If frr11 > 0 Then Scrivi Format2(n11(1)) & " ",0,0
If frr12 > 0 Then Scrivi Format2(n12(1)) & " ",0,0
If frr13 > 0 Then Scrivi Format2(n13(1)) & " ",0,0
If frr14 > 0 Then Scrivi Format2(n14(1)) & " ",0,0
If frr15 > 0 Then Scrivi Format2(n15(1)) & " ",0,0
If frr16 > 0 Then Scrivi Format2(n16(1)) & " ",0,0
If frr17 > 0 Then Scrivi Format2(n17(1)) & " ",0,0
If frr18 > 0 Then Scrivi Format2(n18(1)) & " ",0,0
If frr19 > 0 Then Scrivi Format2(n19(1)) & " ",0,0
If frr20 > 0 Then Scrivi Format2(n20(1)) & " ",0,0
fr1 = SerieFreqDL(fin,fin,n1,1)
fre1 = SerieFreqDL(es + 1,fin - 1,n1,1)
If fr1 > 0 And fre1 = 0 Then usc = usc + 1: ColoreTesto 2:Scrivi " " & Format2(n1(1)) & " ",1,0
If fr1 > 0 And fre1 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n1(1)) & " ",0,0
fr2 = SerieFreqDL(fin,fin,n2,1)
fre2 = SerieFreqDL(es + 1,fin - 2,n2,1)
If fr2 > 0 And fre2 = 0 Then usc = usc + 1:ColoreTesto 2:Scrivi " " & Format2(n2(1)) & " ",1,0
If fr2 > 0 And fre2 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n2(1)) & " ",0,0
fr3 = SerieFreqDL(fin,fin,n3,1)
fre3 = SerieFreqDL(es + 1,fin - 1,n3,1)
If fr3 > 0 And fre3 = 0 Then usc = usc + 1:ColoreTesto 2:Scrivi " " & Format2(n3(1)) & " ",1,0
If fr3 > 0 And fre3 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n3(1)) & " ",0,0
fr4 = SerieFreqDL(fin,fin,n4,1)
fre4 = SerieFreqDL(es + 1,fin - 1,n4,1)
If fr4 > 0 And fre4 = 0 Then usc = usc + 1:ColoreTesto 2:Scrivi " " & Format2(n4(1)) & " ",1,0
If fr4 > 0 And fre4 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n4(1)) & " ",0,0
fr5 = SerieFreqDL(fin,fin,n5,1)
fre5 = SerieFreqDL(es + 1,fin - 1,n5,1)
If fr5 > 0 And fre5 = 0 Then usc = usc + 1:ColoreTesto 2:Scrivi " " & Format2(n5(1)) & " ",1,0
If fr5 > 0 And fre5 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n5(1)) & " ",0,0
fr6 = SerieFreqDL(fin,fin,n6,1)
fre6 = SerieFreqDL(es + 1,fin - 1,n6,1)
If fr6 > 0 And fre6 = 0 Then usc = usc + 1:ColoreTesto 2:Scrivi " " & Format2(n6(1)) & " ",1,0
If fr6 > 0 And fre6 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n6(1)) & " ",0,0
fr7 = SerieFreqDL(fin,fin,n7,1)
fre7 = SerieFreqDL(es + 1,fin - 1,n7,1)
If fr7 > 0 And fre7 = 0 Then usc = usc + 1:ColoreTesto 2:Scrivi " " & Format2(n7(1)) & " ",1,0
If fr7 > 0 And fre7 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n7(1)) & " ",0,0
fr8 = SerieFreqDL(fin,fin,n8,1)
fre8 = SerieFreqDL(es + 1,fin - 1,n8,1)
If fr8 > 0 And fre8 = 0 Then usc = usc + 1:ColoreTesto 2:Scrivi " " & Format2(n8(1)) & " ",1,0
If fr8 > 0 And fre8 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n8(1)) & " ",0,0
fr9 = SerieFreqDL(fin,fin,n9,1)
fre9 = SerieFreqDL(es + 1,fin - 1,n9,1)
If fr9 > 0 And fre9 = 0 Then usc = usc + 1:ColoreTesto 2:Scrivi " " & Format2(n9(1)) & " ",1,0
If fr9 > 0 And fre9 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n9(1)) & " ",0,0
fr10 = SerieFreqDL(fin,fin,n10,1)
fre10 = SerieFreqDL(es + 1,fin - 1,n10,1)
If fr10 > 0 And fre10 = 0 Then usc = usc + 1:ColoreTesto 2:Scrivi " " & Format2(n10(1)) & " ",1,0
If fr10 > 0 And fre10 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n10(1)) & " ",0,0
fr11 = SerieFreqDL(fin,fin,n11,1)
fre11 = SerieFreqDL(es + 1,fin - 1,n11,1)
If fr11 > 0 And fre11 = 0 Then usc = usc + 1: ColoreTesto 2:Scrivi " " & Format2(n11(1)) & " ",1,0
If fr11 > 0 And fre11 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n11(1)) & " ",0,0
fr12 = SerieFreqDL(fin,fin,n12,1)
fre12 = SerieFreqDL(es + 1,fin - 2,n12,1)
If fr12 > 0 And fre12 = 0 Then usc = usc + 1:ColoreTesto 2:Scrivi " " & Format2(n12(1)) & " ",1,0
If fr12 > 0 And fre12 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n12(1)) & " ",0,0
fr13 = SerieFreqDL(fin,fin,n13,1)
fre13 = SerieFreqDL(es + 1,fin - 1,n13,1)
If fr13 > 0 And fre13 = 0 Then usc = usc + 1:ColoreTesto 2:Scrivi " " & Format2(n13(1)) & " ",1,0
If fr13 > 0 And fre13 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n13(1)) & " ",0,0
fr14 = SerieFreqDL(fin,fin,n14,1)
fre14 = SerieFreqDL(es + 1,fin - 1,n14,1)
If fr14 > 0 And fre14 = 0 Then usc = usc + 1:ColoreTesto 2:Scrivi " " & Format2(n14(1)) & " ",1,0
If fr14 > 0 And fre14 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n14(1)) & " ",0,0
fr15 = SerieFreqDL(fin,fin,n15,1)
fre15 = SerieFreqDL(es + 1,fin - 1,n15,1)
If fr15 > 0 And fre15 = 0 Then usc = usc + 1:ColoreTesto 2:Scrivi " " & Format2(n15(1)) & " ",1,0
If fr15 > 0 And fre15 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n15(1)) & " ",0,0
fr16 = SerieFreqDL(fin,fin,n16,1)
fre16 = SerieFreqDL(es + 1,fin - 1,n16,1)
If fr16 > 0 And fre16 = 0 Then usc = usc + 1:ColoreTesto 2:Scrivi " " & Format2(n16(1)) & " ",1,0
If fr16 > 0 And fre16 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n16(1)) & " ",0,0
fr17 = SerieFreqDL(fin,fin,n17,1)
fre17 = SerieFreqDL(es + 1,fin - 1,n17,1)
If fr17 > 0 And fre17 = 0 Then usc = usc + 1:ColoreTesto 2:Scrivi " " & Format2(n17(1)) & " ",1,0
If fr17 > 0 And fre17 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n17(1)) & " ",0,0
fr18 = SerieFreqDL(fin,fin,n18,1)
fre18 = SerieFreqDL(es + 1,fin - 1,n18,1)
If fr18 > 0 And fre18 = 0 Then usc = usc + 1:ColoreTesto 2:Scrivi " " & Format2(n18(1)) & " ",1,0
If fr18 > 0 And fre18 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n18(1)) & " ",0,0
fr19 = SerieFreqDL(fin,fin,n19,1)
fre19 = SerieFreqDL(es + 1,fin - 1,n19,1)
If fr19 > 0 And fre19 = 0 Then usc = usc + 1:ColoreTesto 2:Scrivi " " & Format2(n19(1)) & " ",1,0
If fr19 > 0 And fre19 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n19(1)) & " ",0,0
fr20 = SerieFreqDL(fin,fin,n20,1)
fre20 = SerieFreqDL(es + 1,fin - 1,n20,1)
If fr20 > 0 And fre20 = 0 Then usc = usc + 1:ColoreTesto 2:Scrivi " " & Format2(n20(1)) & " ",1,0
If fr20 > 0 And fre20 > 0 Then usc = usc + 1:ColoreTesto 0:Scrivi " " & Format2(n20(1)) & " ",0,0
ColoreTesto 0:
Scrivi
End If
End If
'End If
'Next
Next
Scrivi usc
End Sub