Hi all, i have an array contains a-z. Then i have a textbox and when click on the button, it will replace the text inside the textbox to the index number of the array. Example, from "abc" will become "0 1 2" The code below do the job. May i know how to do so that i can replace the text inside the textbox from "0 1 2" back to "abc" based on the array? Thanks
Dim txtKey As String = readKeyTxt.Text
readKeyTxt.Text = ""
For Each b As String In txtKey
If chars.Contains(b) Then
Dim ab As Integer = Array.IndexOf(chars, b)
b = Replace(LCase(b), b, ab & " ")
readKeyTxt.Text &= b
End If
Next