ROW [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
ROW
The ROW function returns the number of rows in an array as it is
currently dimensioned. If it is a vector (one dimensional array), the
number of rows is the number of elements. Otherwise, the number of rows
is the size of the dimension that is second from the right in the dims of
the DIM statement. The result is an integer value by default.
Syntax
ROW(array)
Parameters
array Structured collection of variables of the same type.
The structure is determined when the array is declared.
String variable names are suffixed with a "$".
Examples
OPTION BASE 1 is assumed.
A(2,2): 1 2 B(2,4): 1 2 3 4 C(4,3,2): 1 2 0 4 0 0 1 2
4 5 5 6 7 8 5 1 1 0 4 5 0 0
2 0 3 2 1 2 0 1
D(3,3): 1 0 1 E(2,2): 8 3 F(5): 5 4 3 2 1
3 5 7 4 7
9 0 9
ROW(A) = 2
ROW(B) = 2
ROW(C) = 3
ROW(D) = 3
ROW(E) = 2
ROW(F) = 5
MPE/iX 5.0 Documentation