Doublequotes in strings

sergeysagan

Newcomer
Joined
Sep 10, 2003
Messages
7
How do I add the double quotes ( " ) into a string so VB doesn't think that I'm closing one string and startin another, but so it actualy appears in my string as a double quote when I use the string for output.

I know this is a newbie question but I guess I'm just not too good at using the Visual Studio help interface.
 
Yes the first answer works fine.

But if you have another problem with characters in strings use the chr(X) command. X is the code for the character. For example chr(13) for the "return"-key
 
No, the double quotes works always in VB.Net application. Chr is a legacy command the System.Text.Encoding.ASCII namespace provides equivalent functions for Asc and Chr.
 
Back
Top