Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
Syntax
Dim result As Char = CChar(expression)
Description
The CChar function converts the first character of a string to the Char data type. Usage at a Glance
Example
MsgBox(CChar("abc")) ' Displays "a" MsgBox(CChar("56")) ' Displays "5"
See Also
Chr, ChrW Functions |
Категории