Dictionary.ValueTypeForKey
--------------------------

Queries data type of the value for the key.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Dictionary](component_Dictionary.md) | [5.1](newinversion51.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

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

**MBS**( **"Dictionary.ValueTypeForKey";** /\* Queries data type of the value for the key. \*/  
**$DictionaryRef**; /\* The reference number to the dictionary.e.g. $dic \*/   
**$Key**) /\* The key to use. Keys are case sensitive.e.g. "FirstName" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| DictionaryRef | The reference number to the dictionary. | $dic |
| Key | The key to use. Keys are case sensitive. | "FirstName" |

### Result

Returns type or error.

### Description

Queries data type of the value for the key.  
Value can be Invalid, Text, Number, Date, Time, TimeStamp, Container or Boolean.  
### See also

- [Dictionary.SetValueForKey](DictionarySetValueForKey.md)
- [Dictionary.ValueForKey](DictionaryValueForKey.md)

### Blog Entries

- [Data structures in MBS Plugin](https://www.mbsplugins.de/archive/2023-11-27/Data_structures_in_MBS_Plugin/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 5.1pr1](https://www.mbsplugins.de/archive/2015-03-16/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 12nd March 2015 , last changed 1st March 2021

  
[Dictionary.ValueForKey](DictionaryValueForKey.md) - [Dictionary.Values](DictionaryValues.md)

[HTML Version](DictionaryValueTypeForKey.shtml)