How do I make " appear in a string?

hydeyho

Registered User.
Local time
Today, 00:08
Joined
Mar 1, 2007
Messages
31
I'm compiling a string which needs to display " at various points but vb obviously thinks this is the end of the string. How do I get vb to recognise it as part of a string and not the end of the string?
 
Double it up or concatenate using chr function - test it in the immediate window (ctrl+g)

? "this is "" a test"
? "this is " & chr$(34) & " a test"
 
Thanks, works great!
 

Users who are viewing this thread

Back
Top Bottom