1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
|
Dim fo As New Form2
Dim t1() As String
Dim t2() As String
Dim t3() As String
Dim t4() As String
Dim t5() As String
Dim t6() As String
Dim t7() As String
Dim t8() As String
Dim t9() As String
Dim t10() As String
Dim cont As Long
Dim test As Integer
test = 0
Dim a, b, c, d, ee, f, g, h, i, j As Integer
Dim mot As String
Dim alpha As String
alpha = "a,b,c,d"
t1 = Split(alpha, ",")
t2 = Split(alpha, ",")
t3 = Split(alpha, ",")
t4 = Split(alpha, ",")
t5 = Split(alpha, ",")
t6 = Split(alpha, ",")
t7 = Split(alpha, ",")
t8 = Split(alpha, ",")
t9 = Split(alpha, ",")
t10 = Split(alpha, ",")
Dim top As Integer
top = UBound(t10)
Dim cond As Integer
cond = 0
While j < top + 1
For a = 0 To top
cont = cont + 1
mot = t1(j) & t2(i) & t3(h) & t4(g) & t5(f) & t6(ee) & t7(d) & t8(c) & t9(b) & t10(a)
Select Case test
Case 0
fo.ListBox1.Items.Add(mot)
Case 1
fo.ListBox2.Items.Add(mot)
End Select
If a = top And b = top And c = top And d = top And ee = top And f = top And g = top And h = top And i = top Then
b = 0
c = 0
d = 0
ee = 0
f = 0
g = 0
h = 0
i = 0
j = j + 1
Exit For
End If
If a = top And b = top And c = top And d = top And ee = top And f = top And g = top And h = top Then
b = 0
c = 0
d = 0
ee = 0
f = 0
g = 0
h = 0
i = i + 1
Exit For
End If
If a = top And b = top And c = top And d = top And ee = top And f = top And g = top Then
b = 0
c = 0
d = 0
ee = 0
f = 0
g = 0
h = h + 1
Exit For
End If
If a = top And b = top And c = top And d = top And ee = top And f = top Then
test = 1
b = 0
c = 0
d = 0
ee = 0
f = 0
g = g + 1
Exit For
End If
If a = top And b = top And c = top And d = top And ee = top Then
b = 0
c = 0
d = 0
ee = 0
f = f + 1
Exit For
End If
If a = top And b = top And c = top And d = top Then
b = 0
c = 0
d = 0
ee = ee + 1
Exit For
End If
If a = top And b = top And c = top Then
b = 0
c = 0
d = d + 1
Exit For
End If
If a = top And b = top Then
b = 0
c = c + 1
Exit For
End If
If a = top Then
b = b + 1
Exit For
End If
Next
End While
fo.Text = cont
fo.Show() |
Partager