
9-8
9.7 Local Variable
DEFINT (Statement)
Function
Declares an integer type variable. The range of the integer is from
−2147483648 to 2147483647.
Format
DEFINT <Variable name>[=<Constant>][,<Variable name>[=<Constant>]...]
Explanation
This statement declares the variable designated by <Variable name> as the
integer type variable. By writing a constant after <Variable name>,
initialization can be carried out simultaneously with the declaration.
Multiple variable names can be declared at a time by delineating the names
using “,”.
Related Terms
DEFDBL, DEFSNG, DEFSTR
Example
DEFINT lix, liy, liz 'Declares lix, liy, and liz as integer type variables.
DEFINT lix = 1 'Declares lix as an integer type variable and sets
'the initial value to 1.
Komentarze do niniejszej Instrukcji