With Option Strict On:
Option Strict On
Dim theLetterA As Char = "A"
returns an error about converting the string "A" to a Char.
"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.
C
Dim theLetterA As Char = "A"C
2.1m questions
2.1m answers
60 comments
57.0k users