CValueSet:SetAt
The SetAt method sets the value of the (key, value) pair at the specified index, beginning at 1. The specified index must lready exist in the CValueSet. This method does not add a new member to the set.
bool = CValueSet:SetAt( nIndex, value )
Sets the value at index nIndex.
Retruns false on failure or if nIndex is outside the range [ 1, Count() ].
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: Member= key 2, -7125.23 |
|
-- set the value at index 2 |
|
-- result: Member= key 2, 15.6 |
CValueSet Class, Remove, Empty, Set
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.