DMC-100/1500 Command Reference
DM
•
39
DMC-1000
DMC-1500
DM
FUNCTION:
Dimension
DESCRIPTION:
The DM command defines a single dimensional array with a name and n total elements. The
first element of the defined array starts with element number 0 and the last element is at
n-1.
ARGUMENTS:
DM c[n]
where
c is a name of up to eight characters, starting with an uppercase alphabetic character. n
specifies the size of the array (number of array elements).
DM ? returns the number of array elements available.
USAGE: DEFAULTS:
While Moving
Yes
Default Value
---
In a Program
Yes
Default Format
---
Command Line
Yes
Can be Interrogated
Yes
Used as an Operand
Yes
OPERAND USAGE:
_DM contains the available array space. For example, before any arrays have been defined,
the operand _DM will return 8000. If an array of 100 elements is defined, the operand
_DM will return 7900.
CONTROLLER
AMT. OF AVAILABLE ARRAY SPACE
DMC-1500 8000
elements
DMC-1010 thru DMC-1040
1600 elements
DMC-1050 thru DMC-1080
8000 elements
DMC-1010-MX thru DMC-1040-MX
8000 elements
RELATED COMMANDS:
DA Deallocate
Array
EXAMPLES:
DM Pets[5],Dogs[2],Cats[3] Define dimension of arrays, pets with 5 elements; Dogs with 2
elements; Cats with 3 elements
DM Tests[1600]
Define dimension of array Tests with 1600 elements