◄Programming Tasks► ◄Contents► ◄Index► ◄Back► ────────────────────────────────────────────────────────────────────────────── Statements and Functions Used for Declaring Constants and Variables Statement or Task function Action ═══════════════════════ ════════════════ ═════════════════════════════ Defining and declaring COMMON Defines global variables for variables sharing between modules or for changing to another program. DIM Declares a variable and allocates storage. OPTION BASE Declares the default lower bound for array subscripts. Declaring data types CONST Declares symbolic constants for use in place of values. DATA Stores the numeric and string constants used by the program's READ statements. DEFtypes Sets the default data types for variables, DEF FN functions, and FUNCTIONS procedures. TYPE Defines an ISAM table type that contains one or more table columns in an ISAM record. Reading DATA statements READ Reads values from a DATA statement and assigns the values to variables. RESTORE Allows DATA statements to be reread from a specified line. Getting array LBOUND Returns the lower bound information (smallest available subscript) for the indicated dimension of an array. UBOUND Returns the upper bound (largest available subscript) for the indicated dimension of an array. Modifying memory of ERASE Reinitializes the elements of arrays static arrays; deallocates dynamic arrays. REDIM Changes the space allocated to an array that has been declared dynamic.