A variable is data item whose value can change while the program is running.

Here is a list of the most common variable types.
These are the ones that you are expected to know about for the exam.

Integer whole numbers
String some text
Char a single character
Double real numbers, not just decimals
Boolean these can be either True or False

Here are some others that you may want to use in your programs.


Use these if an Integer is not big enough
They can get very large

Decimal useful for storing amounts of money

You can see a complete list of Visual Basic variable types on the Microsoft website.


The are used to combine variables.


These are data items whose value is fixed and cannot be changed while the program is running.

< The Console | VisualBasic | Operators >