split function help?

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
both ways will work fine.
 
This is a sample of questionaire:
Text left of : is checkbox label
Text to right of : goes to an output file if box is checked


another
 
Back
Top