This documentation is archived and is not being maintained.

2.4.5 Character Literals

Visual Studio .NET 2003

A character literal represents a single Unicode character of the Char type. Two double-quote characters is an escape sequence representing the double-quote character.

Imports System

Module Test
    Sub Main()
        ' This prints out: a.

        ' This prints out: ".
    End Sub
End Module
CharacterLiteral ::=
   DoubleQuoteCharacter StringCharacter DoubleQuoteCharacter C

See Also

2.4.1 Boolean Literals | 2.4.2 Integer Literals | 2.4.3 Floating-Point Literals | 2.4.4 String Literals | 2.4.6 Date Literals | 2.4.7 Nothing | 2.4 Literals | Character Data Types (Visual Basic Language Concepts)