Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

Dictionary.KeyAtIndex

Returns key with given index.

Component Version macOS Windows Linux Server iOS SDK
Dictionary 5.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Dictionary.KeyAtIndex"; DictionaryRef; Index )   More

Parameters

Parameter Description Example
DictionaryRef The reference number to the dictionary. $dic
Index The index for the key. Range from 0 to Dictionary.Count-1. 0

Result

Returns OK or error.

Description

Returns key with given index.
Index starts at zero and ends at Dictionary.Count-1.

Examples

Query first key:

MBS("Dictionary.KeyAtIndex"; $Param; 0)

See also

Example Databases

Created 12nd December 2014, last changed 1st March 2021


Dictionary.HasKey - Dictionary.Keys

Feedback: Report problem or ask question.