|
CMatrix:RemoveRow
The RemoveRow method removes the
CMatrix row at index n.
Syntax
n is the index of the row to be removed.
Remarks
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.
Example
The following script removes the row at index n =
100:
|
M = new_matrix()
|
|
|
M:Set( 1, 4, "s1" )
|
|
|
M:Set( 2, 40, "s2" )
|
|
|
M:Set( 2, 18, "s3" )
|
|
|
M:Set( 2, 120, "s4" )
|
|
|
M:Set( 10, 120, "s5" )
|
|
|
Printf("Members = %d",
M:Members())
|
|
|
M:RemoveRow(
2 )
|
|
|
Printf("Members = %d",
M:Members())
|
|
Related Topics
CMatrix class
Remove
Count
Members
Mira Pro x64 Script User's Guide, v.8.76 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.
|