CMatrix:RemoveRow
The RemoveRow method removes the CMatrix row at index n.
CMatrix:RemoveRow( nRow ) where |
nRow is the index of the row to be removed.
This method removes all columns data in the row as well as the row itself. This decreases by 1 the row count returned by Count.
The following script removes the row at index n = 100:
|
-- create a CMatrix object |
|
-- set member in row 1 |
|
-- set member in row 2 |
|
-- set member in row 2 |
|
-- set member in row 2 |
|
-- set member in row 10 |
|
-- result: Members = 5 |
|
-- remove the row at index 2 |
|
-- result: Members = 2 |