Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


Checks if the given key exists in dictionary.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Dictionary 5.0 Yes Yes Yes Yes Yes

MBS( "Dictionary.HasKey"; DictionaryRef; Key )


Parameter Description Example value
DictionaryRef The reference number to the dictionary as returned by Dictionary.Create function. $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

Example Databases

Dictionary.Deserialize   -   Dictionary.KeyAtIndex

Feedback: Report problem or ask question.

MBS FileMaker Plugins