String.Split Method (Char[], Int32, StringSplitOptions)
Public Class StringSplit2
Public Shared Sub Main()
Dim phrase As String = "The quick brown fox"
Dim words() As String
words = phrase.Split(TryCast(Nothing, Char()), 3,
StringSplitOptions.RemoveEmptyEntries)
words = phrase.Split(New Char() {}, 3,
StringSplitOptions.RemoveEmptyEntries)
End Sub
End Class
Related examples in the same category