newguy
Well-known member
How do you take a string and strip the first character and place it at the end of the same string?
You did:First, you need to index the string, just like an array, to get the first character.
txt(0)
You did:Next, you need to call Substring and specify the start index as 1, so you get everything starting at the second character.
txt.substring(1)
You did:Finally, you need to concatenate those two result together, which you do in exactly the same way as you join any other strings, i.e. using the & operator.
txt.substring(1) & txt(0)
Dim txt As String = textbox1.Text
Dim txtindex As String = txt(txt.Count - 1)
txt = txt.Remove(txt.Count - 1, 1)
Dim result As String = txt(txt.Count - 1) & txt
textbox1.Text = result