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


Checks if the given keys exist in dictionary.

Component Version macOS Windows Linux Server iOS SDK
Dictionary 14.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Dictionary.HasKeys"; DictionaryRef; Keys )   More


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


Returns list or error.


Checks if the given keys exist in dictionary.
Like Dictionary.HasKey, but checking for a list.


Try the function:

    list = MBS("Dictionary.Create"; "Hello"; 1; "World"; 2; "More"; 3);
    found = MBS("Dictionary.HasKeys"; list; "World¶Other¶More");
    r = MBS("Dictionary.Release"; list)
]; found)

See also

Release notes

Blog Entries

This function checks for a license.

Created 17th March 2024, last changed 19th March 2024

Dictionary.HasKey - Dictionary.KeyAtIndex