Elementary Data Types (Visual Basic)

 

Updated: July 20, 2015

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Visual Basic supplies a set of predefined data types, which you can use for many of your programming elements. This section describes these types and how to use them.

System_CAPS_ICON_note.jpg Note

Every elementary data type in Visual Basic is supported by a structure or a class that is in the System namespace. The compiler uses each data type keyword as an alias for the underlying structure or class. For example, declaring a variable by using the reserved word Byte is the same as declaring it by using the fully qualified structure name System.Byte.

Numeric Data Types
Describes the integral and non-integral numeric types.

Character Data Types
Describes the Char and String types.

Miscellaneous Data Types
Describes the Boolean, Date, and Object types.

Data Types
Introduces the Visual Basic data types and describes how to use them.

Data Types
Provides an overview of the elementary data types supplied by Visual Basic.

Show: