With Option Strict On
:
Dim theLetterA As Char = "A"
returns an error about converting the string "A"
to a Char
.
What is the syntax to enter a Char
literal?
A character literal is entered using a single character string suffixed with a C
.
Dim theLetterA As Char = "A"C