I have a string as follows:
MyString="Name1,Name2"
I want to create 2 strings from it:
String1 = "Name1"
String2 = "Name2"
So String1 gets the characters on the left of "," and String2 the
characters on the right.
How can I do this?
MiguelThe Split method of string should work:
Dim sAs String ="test1,test2"Dim ssAs String() = s.Split(",")Dim test1As String = ss(0)Dim test2As String = ss(1)
0 comments:
Post a Comment