Q:

How to get value in the splitted string

I have an example string which has been splitted using the symbol "\"
 Dim a As String = "123\456\7890\"
Dim leftString = a.Substring(0, msg.IndexOf("\"))
          TextBox1.Text = leftString

In textbox1 it show the number of "123" , and how can i get the number of "456" and "7890"?

A:

Dim a As String = "123\456\7890\"
Dim aSplit As String() = a.Split(New [Char]() {"\"c})
dim a1 as string = aSplit(0).Trim '123
dim a2 as string = aSplit(1).Trim '456
dim a3 as string = aSplit(2).Trim '7890

