
5.1 General Commands
This section describes commands that are not confined to any specific hardware features.
ABS
Purpose
To return the absolute value of a numeric expression.
Syntax
A = ABS(N)
Remarks
"A" is a numeric variable to be assigned to the absolute value of a numeric
expression.
"N" is a numeric expression; it can be an integer or a real number.
Example
TimeDifference% = ABS(Time1% - Time2%)
DIM
Purpose
To specify the maximum value of variable subscripts and to allocate storage
accordingly.
Syntax
DIM Array (range {,range}) {, Array(range {,range})}
Remarks
"Array" is an array variable.
"range" can be an integer or an integer expression.
The DIM statement sets all the elements of the specified arrays to an initial value of
zero or empty string.
Note that the maximum allowable number of dimensions for an array is 2.
Example
DIM A(10), B%(20), C$(30,10)
GOSUB
Purpose
To call a specified subroutine.
Syntax
GOSUB SubName|SubLabel
Remarks
"SubName" is the name of a subroutine.
"SubLabel" is the line label of a subroutine.
Comentarios a estos manuales