Keyboard
Programming Manual
51
SATO Europe
DIM
Description
An array is a collection of variables of the same type, referenced by a common name.
The DIM statement is used to declare the array variables of integer, float and double
float data types. The lowest address corresponds to the first element, and the highest
address to the last element. A specific element in an array is accessed by an index.
Syntax
DIM variable (subscripts)[, variable (subscripts), …]
Remarks
The base of an array index always begins from 0. For example,
DIM A(10)
there are,
in total, 11 elements of variable A (0 to 10).
Do not declare a duplicate array in the program without executing the FREE
statement.
The DIM statement sets all the elements of specified arrays to the following initial
values: numbers to zero and strings to null string.
The total number of array elements (no matter what kind of data type) cannot exceed
than 200 elements.
The maximum array variable name is 10 characters.
The maximum dimensions of an array variable is 3.
Example
DIM A(20)
Содержание Smart Keyboard
Страница 1: ...SATO Smart Keyboard Programming manual...
Страница 90: ...Programming Manual Keyboard SATO Europe 88...
Страница 93: ......