How to Use Split Function in VB.NET?

The Split function in VB.NET (Visual Basic.NET) lets the developers to split the string based on the delimiter and return one – dimensional array that contains the substring.

How to Use Split Function in VB.NET?

Below is a sample code snippet that demonstrates how to use the Split function in VB.NET.

Module AC

    Sub Main()
        Dim SplitSring() As String
        SplitSring = Split("Abundant Code|Website", "|")
        For Each item In SplitSring
            Console.WriteLine(item)
        Next
        Console.ReadLine()
    End Sub

End Module

Output of Split Function

How to Use Split Function in VB.NET?