Embedding Double Quote Characters in Strings

How can I include a double quote character in a string? I couldn’t find any masking characters like backslashin C.

To include the double quote character within a string, add in two of them, as in this example:

Dim strString as StringString = “This will “”embed”” a double quote character within this string.”
Single quotes are no problem, but since double quotes delimit strings within VB, you have to use two of them together.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: