lukeman wrote:
Not sure what your problem is... the following works fine for me:
Dim StrX As String = "@Testing"
Dim StrY As String = StrX.Replace("@", String.Empty)
System.Console.WriteLine(StrY)
The output is: "Testing"
I did the same in C# and it all worked fine. You may want to make sure you're running the 2.0 framework? Other than that, no clue.
I did the same thing in C# and it works fine. But not in VB.net, it goes through it as if the "@" does not exist in the string, and outputting "@Testing". I dont know why its not working. SO for now i am using the old one from vb6, Replace (String, ReplacementString1, withString2)
I find Visual Studio 2005 VB.NET buggy, its like a beta3 more than a RTM