How to remove the first N characters from a string in VB.NET

1 Answer

0 votes
Imports System

Class Program
	Public Shared Sub Main()
        Dim str As String = "abcdefghijklmnop"
        Dim N As Integer = 7
		
        str = str.Substring(N)
		
        Console.WriteLine(str)
    End Sub
End Class


' run:
'
' hijklmnop
'

 



answered Apr 23, 2025 by avibootz
...