DIMENSION
DIMENSION returns a FIXED BINARY value that specifies the current extent of dimension y of x.
Abbreviation: DIM
- x
- Array reference. x must not have less than y dimensions.
- y
- Expression specifying a particular dimension of x.
If necessary, y is converted to a FIXED
BINARY(31,0). y must
be greater than or equal to 1. If y is not
supplied, it defaults to 1.
y can be omitted only if the array is one-dimensional.
If y exceeds the number of dimensions of x, the DIMENSION function returns an undefined value.
Under the CMPAT(V3) compiler option, DIMENSION returns a FIXED BIN(63) value. Under the CMPAT(V2) and CMPAT(LE) compiler options, DIMENSION returns a FIXED BIN(31) value.
Using LBOUND and HBOUND instead of DIMENSION is recommended.