String.TrimEnd() method only seems to work with the example
this is the example from the helpfile and it works:
Code:
Dim MyString As String = "Hello, World!"
Dim MyChar As Char() = {"y"c, ","c}
Dim NewString As String = MyString.TrimEnd(MyChar)
Console.WriteLine(NewString)
here is my code which is modeled exactly from the example. it doesn't work:
Code:
Dim MyString As String = "floorboards, "
Dim MyChar As Char() = {"r"c, "o"c, "W"c, "l"c, "d"c, "!"c, " "c}
Dim NewString As String = MyString.TrimEnd(MyChar)
Console.WriteLine(NewString)
i don't see what the problem w/ my code is.