qb45advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
UBOUND Function Details
  QuickSCREEN      Details      Example      Contents      Index
──────────────────────────────────────────────────────────────────────────────
UBOUND Function Details
 
Syntax
  UBOUND(array[,dimension])
 
The argument dimension is an integer from 1 to the number of dimensions in
the array. For an array dimensioned as follows, UBOUND returns the values
listed below:
 
  DIM A(1 TO 100, 1 TO 50, -3 TO 4)
 
  Invocation    Value Returned
  UBOUND(A,1)   100
  UBOUND(A,2)    50
  UBOUND(A,3)     4
 
You can use the shortened syntax UBOUND(array) for one-dimensional arrays
since the default value for dimension is 1.
 
Use the LBOUND function to find the lower limit of an array dimension.