Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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 value 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

This function checks for a license.

Created 12nd December 2014, last changed 9th November 2021


Dictionary.HasKey - Dictionary.Keys