CValueSet:Remove
The Remove method removes from the object the (key, value) pair at the specified key. 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:Remove( key )
Removes the member with the key at string key. 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 |
|
-- remove the (key, value) pair |
|
-- result: Value 2= 0.923 |
CValueSet Class, RemoveAt, Empty, SetAt
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.