CValueSet:GetKeyAt
The GetKeyAt method returns the string key at a specified index in the CValueSet.
strKey = CValueSet:GetKeyAt( nIndex ) Where nIndex is an integer in the CValueSet, ranging from 1 to CValueSet:Count. If the index is invalid, nil is returned. Returns the strKey string key at the specified index. On failure, nil is returned. |
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 the data at index 3 |
|
-- result: Key[3]= key_3 |
CValueSet class, Get, GetAt, GetValueAt
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.