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
    End Sub

End Module

Output of Split Function

How to Use Split Function in VB.NET?

Leave a Reply

Your email address will not be published. Required fields are marked *

Liked this content?. Please spread the word :)

  • RSS
  • Twitter
    Visit Us
    Follow Me