CMatrixRow:Empty
The Empty method deletes all members of the CMatrixRow but does not delete the CMatrixRow object.
CMatrixRow:Empty() |
This deletes all array members without deleting the CMatrixRow object itself. If you delete the CMatrixRow, the object is set to nil and cannot be used again without creating a new instance using new. By calling Empty, the existing CMatrixRow can be used to Set new members, and so forth.
The following script sets 3 members in a new CMatrixRow M, then deletes all members of M:
|
-- create a CMatrixRow |
|
-- set member |
|
-- set member |
|
-- set member |
|
-- result: Members = 3 |
|
-- empty the array |
|
-- result: Members = 0 |