String and Char Data Types

Individual characters (letters, digits, symbols) can be represented using the Char data type, which takes 2 bytes of memory, and represents a UNICODE character.

NOTE

UNICODE is an international standard that defines how all characters in all known languages are mapped to a value stored in 2 bytes—that is, a number between 0 and 65635. An older standard was (and still is) in used in some older versions of Windows and other operating systems. This standard is known as ASCII and uses only one byte to represent a character. The .NET Framework automatically takes care of converting strings and characters to and from ASCII.

To represent strings of characters (normal text) you use the String data type. A String is an array ...

Get Visual Basic® .NET by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.