Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Variables, Constants, and Declarations
◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Variables, Constants, and Declarations
■ The following keywords are used in Visual Basic to declare the type and
scope of arrays, variables, and constants:
◄COMMON► Defines global variables for sharing between modules
◄CONST► Declares symbolic constants for use in place of values
◄ControlPanel► Defines system colors and characteristics
◄DATA► Stores numeric and string constants used by READ
◄DEFCUR► Defines default data type as currency for range of names
◄DEFDBL► Defines default data type as double for range of names
◄DEFLNG► Defines default data type as long for range of names
◄DEFSNG► Defines default data type as single for range of names
◄DEFSTR► Defines default data type as string for range of names
◄DIM► Declares a variable and allocates storage
◄$DYNAMIC► Specifies DIM'd arrays to be created at run time
◄ERASE► Reinitializes static arrays; deallocates dynamic arrays
◄$INCLUDE► Causes file information to be included in processing
◄LBOUND► Returns the smallest available subscript for an array
◄LET► Assigns the value of an expression to a variable
◄OPTION BASE► Declares the default lower bound for array subscripts
◄OPTION EXPLICIT► Requires variables to be declared prior to use
◄PRESERVE► Causes array data to be preserved (REDIM)
◄READ► Reads values from a DATA statement and assigns them
◄REDIM► Changes the space allocated to a dynamic array
◄REM► Enables the use of metacommands
◄RESTORE► Allows DATA statements to be reread from line specified
◄SHARED► Gives SUBs and FUNCTIONs access to variables
◄STATIC► Makes variable local and preserves value between calls
◄SWAP► Exchanges the value of two variables
◄TYPE► Defines a data type that contains one or more elements
◄UBOUND► Returns largest available subscript for an array
See: ◄Keywords by Task►