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: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.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 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

💬 Ask a question or report a problem