VB Net – Code:
- Function RemoveFirst(ByVal myString As String)
- If myString <> String. Empty Then Return myString. Remove(0, 1) Else Return String. Empty.
- End Function.
Example : –
Dim s As String = “KNIP”
Here 0 (zero) is the start index of string and 1 is the count of chars to remove.
“ijklm” is displayed as first 1 chars (K) were removed.