CMatrixRow:Remove
The Remove method removes the CMatrixRow member at index n.
value = CMatrixRow:Remove( nIndex ) where |
nIndex is the index of the member to be removed. On failure, nil is returned.
The return value corresponds to whatever type was saved into the CMatrixRow at the specified index. This may be a number, string, or other quantity.
The following script removes the member at index nIndex = 10:
|
-- create a CMatrixRow object |
|
-- set member [2] |
|
-- set member [10] |
|
-- set member [100] |
|
-- result: N = 3 |
|
-- remove member [10] |
|
-- result: N = 2, v='s2' |