DECLARE NUMERIC

DECLARE NUMERIC
declares numeric variables.
Example.
DECLARE NUMERIC A,B,M(10)
declares simple variables A and B, and a 1-dimensional array M.

The way how to declare arrays is same as DIM statements.
Example.
1-dimensional arrays A(10), B(2 TO 7)
2-dimensional arrays C(10,10), D(0 TO 2, 0 TO 5)
3-dimensional arrays E(4,4,2), F(3,3,2 TO 3)
Note that bounds of indices must be constants in the declaration.

DECLARE statements are declarative statements, which are not objects of the control.

When Option menu- Syntax - "Compel All Variables Declared" is checked, if a non-declared variable is found, compiling stops. This is useful to avid a bug caused by a typo.


Refer to DECLARE STRING