CValueSet:Get
The Get method returns the value assigned to a string key in the CValueSet. You can also get the value at a specific set index using the GetValueAt method.
Value = CValueSet:Get( strKey ) Where strKey is a string correscponding to the value stored in the CValueSet. Returns a Value is a number, integer, string, or boolean, according to the type of the CValueSet. On failure, nil is returned. |
The following example creates a CValueSet S and adds members to it, then returns the value at a key:
|
-- constructor for a set of type "integer" |
|
-- add a key and value |
|
-- add a key and value |
|
-- add a key and value |
|
-- result: Value = -7125 |
CValueSet class, GetAt, GetKeyAt, GetValueAt
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.