How to put a literal quote " in a msgbox
OK, I'm a newbie here and am just learning VB.....
I want to literally put a " (a quote) in a Msgbox...how can I get VBscript to recognize that I just want a " in the MSGbox and it is not the beginning of a string?
for example...
The following code in a .vbs file:
Msgbox "
Returns an error "unterminated string constant". But I literally want a message box with a double quote mark in it. How do you do it?
Thanks,
Bookoo
There are two ways to do it
First way:
msgbox "Hello ""Test"" Good bye"
Second way:
msgbox "Hello " & chr(34) & "Test" & chr(34) & " Good bye"
It will look like this:
Hello "Test" Good bye
I hope this is want you need.