
Do While j <= URiga1 Or contatore < 1000 contatore = contatore + 1 Loop |
Do While j <= URiga1 Or contatore < 1000 If riga = ultima Then contatore = contatore + 1 Loop |
Do While j <= URiga1 Or contatore < 1000
If riga = Ultima Then contatore = contatore + 1
If contatore > 1000 Then contatore = contatore + 1 else Goto ERRORE
End if
...ESEGUI
Loop |
Do While j <= URiga1 Or contatore < 1000
If riga = Ultima Then contatore = contatore + 1 ' se minore continua ad incrementare ed esegue
If contatore = 1000 Then Goto ERRORE ' se nuguale a 1000 Goto
...ESEGUI
Loop |
On Error GoTo fine
For n = 1 To 32
Randomize
Casuale = Int((32 * Rnd) + 1)
Arr.Add Casuale, CStr(Casuale)
If Casuale Mod 2 = 0 Then
P = P + 1
ReDim Preserve Pari(1 To P)
Pari(P) = Casuale
Else
D = D + 1
ReDim Preserve Dispari(1 To D)
Dispari(D) = Casuale
End If
fine:
If Err.Number = 457 Then
n = n - 1
End If
Resume Next
Next n
|
