June 26th, 2014, 09:43 AM
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)
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
AC ....and so on?
June 27th, 2014, 02:16 AM
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 ?
Always use [code][/code] tags when posting code.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!