HBOUND

HBOUND returns a FIXED BINARY value that specifies the current upper bound of dimension y of x.

Read syntax diagramSkip visual syntax diagram
>>-HBOUND(x-+----+-)-------------------------------------------><
            '-,y-'     

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 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.

Under the CMPAT(V3) compiler option, HBOUND returns a FIXED BIN(63) value. Under the CMPAT(V2) and CMPAT(LE) compiler options, HBOUND returns a FIXED BIN(31) value.






Published: 23 December 2018