Understanding Visual Basic Variable and Constant Types

From Techotopia
Revision as of 18:33, 10 July 2007 by Neil (Talk | contribs) (New page: A variable is a location in memory where a value can be stored during the execution of a Visual Basic application. Visual Basic variables are assigned names by the programmer when they ar...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A variable is a location in memory where a value can be stored during the execution of a Visual Basic application. Visual Basic variables are assigned names by the programmer when they are declared so that they can easily be referenced in other places in the application code.

These values may either be declared as variable (in that once the value has been assigned it can be changed later in the Visual Basic code) or as constant (in that once the value has been assigned it cannot be changed elsewhere in the code).

In the next chapter (Declaring Visual Basic Variables we will look at how to create Visual basic variables and assign values to them. Before doing that, however, we need to look at the various types of variables that are available.

Boolean Variable Type