CArray:Remove
The Remove method removes the CArray member at index n.
value = CArray:Remove( n ) |
n is the index of the member to be removed.
On success, the value of the removed member is returned.
Otherwise, nil is returned.
The value returned corresponds to whatever type was saved into the CArray at the specified index. This may be a number, string, or other quantity
The following script removes the member at index n = 10:
|
-- create a CArray object |
|
-- set member [2] |
|
-- set member [10] |
|
-- set member [100] |
|
-- result: N = 3 |
|
-- remove member [10] |
|
-- result: N = 2, v='s2' |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.