I have a program where a user puts a string into a textbox, and then character one goes into Textbox1, char2 goes into TB2, char3 goes into TB3, etc.
I have a For loop that gets all of my textboxes that are used for this, and I have my for loop that is supposed to go through my string character by character.
Here is my code:
That basically shows what I am trying to do.
Could anyone help me who knows what is going on? Thanks.
I have a For loop that gets all of my textboxes that are used for this, and I have my for loop that is supposed to go through my string character by character.
Here is my code:
VB.NET:
Dim impText As String
Dim i As Integer
Dim txtLength As Integer
Dim num As Integer
Dim oneChar As Char
Dim tb = DirectCast(Me.Controls("TextBox" & num), TextBox)
impText = Trim(TextBox171.Text)
txtLength = impText.Length
oneChar = impText.Chars(i)
For i = 0 To txtLength - 1
For num As Integer = 1 To 136
oneChar = impText.Chars(i)
tb.text = oneChar
Next i
That basically shows what I am trying to do.
Could anyone help me who knows what is going on? Thanks.