how are you trying to use it?
heres a couple of ways.
Code:
Dim s() As String = "some text with spaces".Split(" ") /// fill the s() array with the words that are Split by the spaces.
Dim x As Integer
For x = LBound(s) To UBound(s)
MessageBox.Show(s(x))
Next
or ...
Code:
Dim StrString As String = "some text with spaces"
Dim s() As String = Split( StrString , " ")
Dim x As Integer
For x = LBound(s) To UBound(s)
MessageBox.Show(s(x))
Next
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.