Visual Basic Data Types

Visual Basic has many different data types. We are interested in only a few for now.

Any character may be stored in a string variable.

Note: If you know that a variable will always store whole numbers (such as 12) rather than numbers with a fractional amount (such as 3.57), declare it as an Integer data type. Operations are faster with integers, and these types consume less memory than other data types.

The highest positive values of the non-integral types are 7.9228162514264337593543950335E+28 for Decimal, 3.4028235E+38 for Single, and 1.79769313486231570E+308 for Double.