VB.Net Program to Demonstrate the Mid() Function

You are currently viewing VB.Net Program to Demonstrate the Mid() Function

VB.Net program to demonstrate the Mid() function

'VB.Net program to demonstrate the Mid() function.

Module Module1

    Sub Main()
        Dim str1 As String = "I love india"
        Dim str2 As String = ""

        str2 = Mid(str1, 3, 4)
        Console.WriteLine("Sub-string is: {0}", str2)
    End Sub

End Module

Output

Sub-string is: love
Press any key to continue . . .

Ranjith Kumar

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply