I want my string/message box to have quotations in it. How can this be done?
Printable View
I want my string/message box to have quotations in it. How can this be done?
Instead of putting in the quotation use CHR(34) for double quotes or CHR(39) for single quotes.
ex: To print the name O'Riely in TextBox1 use the following:
TextBox1.Text = "O" & CHR(39) & "Riely"
The Mav
The simplest and most readable/understandable way to do it is
VB Code:
Const QUOTE As String = """" MsgBox "René Descartes said " & QUOTE & "I think, therefore I am" & QUOTE
thanks!
one more quick question though, how do I open websites from my app. I mean an .html file on my computer, not a website on the internet.
That's best asked in a new thread and if this one is resolved, please edit the Subject of the first post and add Resolved.