this is the example from the helpfile and it works:here is my code which is modeled exactly from the example. it doesn't work:Code:Dim MyString As String = "Hello, World!" Dim MyChar As Char() = {"y"c, ","c} Dim NewString As String = MyString.TrimEnd(MyChar) Console.WriteLine(NewString)
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.




Reply With Quote