Changes

Jump to: navigation, search

Understanding Visual Basic Variable and Constant Types

472 bytes added, 18:29, 11 July 2007
Integer Variable
The Visual Basic ''Integer'' variable type is used to store whole numbers between -2,147,483,648 and 2,147,483,648. The Integer variable cannot be used to store numbers containing decimals.
 
== Object Variable ==
 
The ''Object'' variable is a catch-all variable type which can be used to store a value of any data type. Because of this flexibility, an ''Object'' variable will typically reserve more memory than is needed for most variable types. For this reason, it is mopre efficient to use the correct variable type for the value you need to store (such as ''Char'' for a character or ''Integer'' for a whole number) rather than use the Object variable type.

Navigation menu