CMatrix:RowsUsed
The RowsUsed method returns the number of row members in the CMatrix.
nRowsUsed = CMatrix:RowsUsed() where |
nRowsUsed is the number of rows in the matrix. On failure or if the matrix is empty, 0 is returned.
This method returns the number of columns defined in the row having the most number of columns. This is not the same as the maximum index in any row.
Suppose a CMatrix assigned to M contains 5 members as shown below. There are 3 rows in the matrix, with column indices ranging from 1 to 44:
|
-- create a CMatrix |
|
-- set member |
|
-- set member |
|
-- set member |
|
-- set member |
|
-- set member |
|
-- result: Used = 3 |