String.Split (String[], StringSplitOptions)
Imports System
Class Sample
Public Shared Sub Main()
Dim phrase As String = "this is a test"
Dim words() As String
words = phrase.Split(TryCast(Nothing, String()), StringSplitOptions.RemoveEmptyEntries)
words = phrase.Split(New String() {},StringSplitOptions.RemoveEmptyEntries)
End Sub
End Class
Related examples in the same category