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
1.4m articles
1.4m replys
5 comments
57.0k users