Changes

Jump to: navigation, search

Understanding Visual Basic Variable and Constant Types

525 bytes added, 20:15, 10 July 2007
no edit summary
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.
== Double Variable ==
 
The Visual Basic ''Double'' variable is used to store either very large numbers, or small numbers requiring more than 28 decimal places. To be precise Visual basic Double varaibles can store positive numbers in the range 4.94065645841246544E-324 to 1.79769313486231570E+308 and negative numbers from -1.79769313486231570E+30 to -4.94065645841246544E-324.
 
''Double'' variables are typically used whne developing scientific applications using Visual Basic and are generally not used by the average developer.
 
== Integer ==

Navigation menu