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


Checks if the given key exists in dictionary.

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


Parameter Description Example
DictionaryRef The reference number to the dictionary. $dic
Key The key to use. Keys are case sensitive. Also keys must be text and should be single line. "FirstName"


Returns 1, 0 or error.


Checks if the given key exists in dictionary.


Checks if some values are there:

$hasText = MBS("Dictionary.HasKey"; $Param; "text")
$hasFun = MBS("Dictionary.HasKey"; $Param; "fun")

See also

Release notes

Example Databases

This function checks for a license.

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

Dictionary.FromJSON - Dictionary.HasKeys