CValueSet:Set
TheSet method sets the value at the specified string key. This value replaces the current value at the key. The value must have the same type as the CValueSet object; otherwise, the value will be converted to the type of the CValueSet object.
boolean = CValueSet:Set( strKey, number_value )
boolean = CValueSet:Set( strKey, integer_value )
boolean = CValueSet:Set( strKey, string_value )
boolean = CValueSet:Set( strKey, boolean_value )
Sets the specified value at the string key, strKey.
Returns false on failure, usually if the specified string key is not already in the CValueSet.
The following example creates a CValueSet S and adds members to it:
|
-- constructor for values of type "number" |
|
-- add a key and value |
|
-- add a key and value |
|
-- add a key and value |
|
-- returns: v= -7.23 |
|
-- set (replace) the value at the key |
|
-- returns: v= 0.791 |
CValueSet Class, SetAt, RemoveAt, InsertAt
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.