Quotes

From HashVB
Revision as of 14:51, 22 March 2006 by Dee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
float
 This article is based on Visual Basic 6. Find other Visual Basic 6 articles.

There are several ways of including a double quote in a string literal (a hard coded string):

  1. The Chr function - Chr$(34)
  2. Doubling them up - ""

The recommended method is to double them up as it is compiled as a static string rather than having to create it dynamically and call the Chr() function at runtime.

MsgBox "There is a single double quote >""< here"

Happy quoting.