I want my string/message box to have quotations in it. How can this be done?
Last edited by datwig; Sep 20th, 2004 at 09:50 PM.
Hello World
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
Const QUOTE As String = """" MsgBox "René Descartes said " & QUOTE & "I think, therefore I am" & QUOTE
Tips, Examples & Tutorials: A valuable forum tool • Generate unique TreeView keys • TreeView with "open" and "closed folder" icons • Time code using GetTickCount • How to trap the Tab key • Scroll a form • NumberBox ActiveX control • Color a ListView row • An InputBox form • How to use SaveSetting and GetSetting • A program registration scheme • Spellcheck a Textbox • Resize controls • Open Windows Explorer at Last Visited Path • A Blackjack Game • Count lines of code • Private Message Viewer • Copy/Paste VB Code • Paste VB Code Add-In • Insert Procedure Names Add-In • A calculator for the game of Spider • My review of REALbasic 2008 • VB6 Debug Tutorial • Picture/Video Viewer • VBF Photo Contest Winners 2009 - 2016
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.
Forum Rules