Chronictank
FH is my second home
- Joined
- Jan 21, 2004
- Messages
- 10,133
Hi all,
Just a quick question
I have the string "this is_stuff" and i want to split the line to get the result
a = this
b = is
c = stuff
I did the following:
While this works, i am wondering if there is a better way to do this?
Just a quick question
I have the string "this is_stuff" and i want to split the line to get the result
a = this
b = is
c = stuff
I did the following:
Code:
' Holds results from split
dim result(2) as string
dim result2(2) as string
dim strline as string = "this is_stuff"
result = strline.Split(" ") 'Split based on space character
result2 = result(1).Split("_") 'Split second half of string based on _
MessageBox.Show("a=" + result(0) + "b=" + result2(0) + "c=" + result2(1))
While this works, i am wondering if there is a better way to do this?