Novità

X maxma62 aiutino script

  • Creatore Discussione Creatore Discussione Roby
  • Data di inizio Data di inizio
Stato
Chiusa ad ulteriori risposte.
R

Roby

Guest
Ciao Max
Ogni tanto ti vengo a disturbare
Questo semplice listato mi scrive i 5 estratti di Bari nella sequenza di come sono stati estratti, giusto?
Se io volessi che me li metta in ordine dal piu piccolo al piu grande
come devo fare? poi ancora, se il valore del numero è tra 0/30 scritti in rosso se tra 31/60 in blu se tra 61/90 in nero
mi puoi aiutare?
Ti ringrazio anticipatamente


Codice:
Sub main()
Fin = 8004 ' EstrazioneFin
For es=8000 To Fin 


a1=Estratto(es,1,1):b1=Estratto(es,1,2):c1=Estratto(es,1,3):d1=Estratto(es,1,4):e1=Estratto(es,1,5)
 Messaggio e
ColoreTesto 0 : Scrivi DataEstrazione(es)&"."&format2(a1)&"."&format2(b1)&"."&format2(c1)&"."&format2(d1)&"."&format2(e1)
Next 

Scrivi 	

End Sub

Firma3.jpg
 
Ciao, per mettere una serie di numeri in ordine cresc/descr basta metterli dentro a un vettore " n(5) "
Per i numeri colorati piu' sono (almeno io so farlo così) e piu' if/then da aggiungere. Alla fine viene fuori uno scrip lungo, comunque guarda se va bene:
Codice:
Sub main()
Dim n(5)
Fin = 8004 ' EstrazioneFin
For es=8000 To Fin 

r1=12
n(1)=Estratto(es,r1,1)
n(2)=Estratto(es,r1,2)
n(3)=Estratto(es,r1,3)
n(4)=Estratto(es,r1,4)
n(5)=Estratto(es,r1,5)

'se nessuno dei 2 = come ordine di estrazione
OrdinaMatrice n    'in ordine cresc
'OrdinaMatrice n,-1 'in ordine decrec

Messaggio es

Scrivi DataEstrazione(es,1)&" [ "&siglaRuota(r1)&" - ",0,0

If (n(1))<31 Then 
ColoreTesto 2:Scrivi Format2 (n(1)),1,0
Else
If (n(1))>30 And (n(1))<60 Then 
ColoreTesto 1:Scrivi Format2 (n(1)),1,0
Else
If (n(1))>59  Then 
ColoreTesto 0:Scrivi Format2 (n(1)),1,0
End If:End If:end If
ColoreTesto 0:Scrivi ".",0,0

If (n(2))<31 Then 
ColoreTesto 2:Scrivi Format2 (n(2)),1,0
Else
If (n(2))>30 And (n(2))<60 Then 
ColoreTesto 1:Scrivi Format2 (n(2)),1,0
Else
If (n(2))>59  Then 
ColoreTesto 0:Scrivi Format2 (n(2)),1,0
End If:End If:end If
ColoreTesto 0:Scrivi ".",0,0

If (n(3))<31 Then 
ColoreTesto 2:Scrivi Format2 (n(3)),1,0
Else
If (n(3))>30 And (n(3))<60 Then 
ColoreTesto 1:Scrivi Format2 (n(3)),1,0
Else
If (n(3))>59  Then 
ColoreTesto 0:Scrivi Format2 (n(3)),1,0
End If:End If:end If
ColoreTesto 0:Scrivi ".",0,0

If (n(4))<31 Then 
ColoreTesto 2:Scrivi Format2 (n(4)),1,0
Else
If (n(4))>30 And (n(4))<60 Then 
ColoreTesto 1:Scrivi Format2 (n(4)),1,0
Else
If (n(4))>59  Then 
ColoreTesto 0:Scrivi Format2 (n(4)),1,0
End If:End If:end If
ColoreTesto 0:Scrivi ".",0,0

If (n(5))<31 Then 
ColoreTesto 2:Scrivi Format2 (n(5)),1,0
Else
If (n(5))>30 And (n(5))<60 Then 
ColoreTesto 1:Scrivi Format2 (n(5)),1,0
Else
If (n(5))>59  Then 
ColoreTesto 0:Scrivi Format2 (n(5)),1,0
End If:End If:end If
ColoreTesto 0

ColoreTesto 0:Scrivi " ] "

Scrivi String(40,"-")
Next 
Scrivi 
End Sub

max :)
 
Stato
Chiusa ad ulteriori risposte.

Ultima estrazione Lotto

  • Estrazione del lotto
    martedì 31 marzo 2026
    Bari
    64
    09
    80
    53
    34
    Cagliari
    65
    25
    53
    11
    04
    Firenze
    52
    61
    16
    58
    66
    Genova
    28
    61
    02
    72
    60
    Milano
    40
    87
    27
    22
    05
    Napoli
    28
    17
    30
    29
    37
    Palermo
    65
    15
    79
    20
    52
    Roma
    84
    58
    35
    80
    60
    Torino
    34
    07
    48
    35
    55
    Venezia
    18
    24
    23
    26
    87
    Nazionale
    77
    81
    40
    26
    73
    Estrazione Simbolotto
    Firenze
    06
    16
    22
    20
    27
Indietro
Alto