-
Making a loop
I have a code that loop from A to D and displays the result in a text box as the loop continues.
Dim test(0 To 3) As String
test(0) = "A"
test(1) = "B"
test(2) = "C"
test(3) = "D"
For i As Int32 = 0 To test.Length - 1
TextBox4.Text = test(i)
TextBox4.Refresh()
Me.Refresh()
Next
But the problem is that the loop only goes like A , B , C ,D
How can I make the loop so it keep going on like
A
B
C
D
AA
AB
AC ....and so on?
-
Re: Making a loop
Not sure what you are asking, you are only executing 4 cycles of the loop and you only have 4 values
There are numerous ways you could make it do the little bit you showed but not sure what ..... and so on really means. Does it stop at AD or do you want to go to AAA, AAB ..... ABA, ABB ..... DDDDDDDDD ?