DEFINT (Statement)


Declare an integer variable.


DEFINT <variablename>[=<constant>][,<variablename>[=<constant>]...]


This statement declares the variable specified by <variablename> as an integer type.
The integer range is from -2147483648 to 2147483647.
Specifying an equal sign and constant immediately following <variablename> performs initialization at the same time in declaration.
More than one variable name can be declared at a time by delimiting those names with commas.



DEFINT lix, liy, liz
'Declare lix, liy, and liz as integer variables
DEFINT lix = 1
'Declare lix as an integer variable and set
'the initial value 1


Top