CMatrixRow:Set
The Set method adds or changes the value of the member at a specified CMatrixRow index.
CMatrixRow:Set( nIndex, value ) where |
nIndex is the member index to set, beginning at 1.
value is the target value to assign to assign.
The following script sets 2 of the CMatrixRow members. Other members, such as index 2, remain undefined:
|
-- create a CMatrixRow |
|
-- set the member at index 4 |
|
-- set the member at index 1 |
|
-- result: R[4] = 10.5 |
|
-- result: R[2] = 0 |