In C# you can use \ to ignore the special characters:
string myString = "this is a \" string";
that would work as one complete string... in VB, doing that does not work...
Anyone know the equivalent of \ to ignore special characters for VB?
In C# you can use \ to ignore the special characters:
string myString = "this is a \" string";
that would work as one complete string... in VB, doing that does not work...
Anyone know the equivalent of \ to ignore special characters for VB?
You can use
Regex.Unescape
for using the c# style escape sequences if you want to use it for other special characters besides the double quotes. To escape the double quotes use the (already mentioned)""
("double double quotes").Ciao! Stefan
VB.NET doubles up the quotes like this:
For the quotation, double the quote:
For everything else, you're out of luck and have to resort to Chr