Replace a sub string with 'Replace' : String Replace « Data Type « VB.Net Tutorial






Class Tester
     Shared Sub Main()
        Dim userInput As String
        userInput = "  asdf  "

        Console.WriteLine(Replace(userInput, "f", ""))
     End Sub

End Class
asd








2.36.String Replace
2.36.1.Replace a sub string with 'Replace'
2.36.2.Replace substring with another substring