CValueSet:RemoveAt
The RemoveAt method removes from the object the (key, value) pair at the specified index, beginning at 1. All members at higher indices are moved down 1 position to fill the removed location. This also reduces the CValueSet Count by 1.
bool = CValueSet:RemoveAt( nIndex )
Removes the member at index nIndex. Returns boolean true on success, otherwise, false.
The following example creates a CValueSet S, adds members to it, then removes the member at index 2:
|
-- constructor, default to values of type "number" |
|
-- add a key and value |
|
-- add a key and value |
|
-- add a key and value |
|
-- result: Value 2= -7125.23 |
|
-- create S2 and initialize it to members of S |
|
-- result: Value 2= 0.923 |
CValueSet Class, Remove, Empty, SetAt
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.