[2008] Splitting a string
Ive looked it up, nothing really worked on 2008, i have a string thats always the same length, and want to split it up into variables.
The string looks like
0-555-555
I have 3 designated variables for each number, and i dont want to put them into an array. Any nice functions? :D
Re: [2008] Splitting a string
Use the split function:
Code:
Dim s As String = "0-555-555"
Dim strings() As String = s.Split("-"c)
Dim var1 As String = strings(0)
Dim var2 As String = strings(1)
Dim var3 As String = strings(2)