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?
VB.NET doubles up the quotes like this:
Dim myString As String = "this is a "" string"
For the quotation, double the quote:
"This is a ""quote"""
For everything else, you're out of luck and have to resort to Chr
"This is a string with a " & Chr(10) & "line-feed"