CValueSet:GetValueAt
The GetValueAt method returns the value at a specified index in the CValueSet. To fetch both the value and key, use GetAt.
Value = CValueSet:GetValueAt( nIndex )
|
The following example creates a CValueSet S and adds members to it, then returns the value at the specified index:
|
-- constructor for a set of type "integer" |
|
-- add a key and value |
|
-- add a key and value |
|
-- add a key and value |
|
-- fetch at set index 3 |
|
-- result: Value[3] = 9 |
CValueSet class, Get, GetKeyAt, GetAt
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.