Preferences.GetValueType
------------------------

Queries data type for a preferences entry.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Preferences](component_Preferences.md) | [9.3](newinversion93.md) | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ✅ Yes |

MBS( "Preferences.GetValueType"; Domain; Key ) 

**MBS**( **"Preferences.GetValueType";** /\* Queries data type for a preferences entry. \*/  
**$Domain**; /\* The domain name for your preferences. Leave empty for default one.e.g. "de.mbsplugins.MyApp" \*/   
**$Key**) /\* The key for the value lookup.e.g. "Username" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Domain | The domain name for your preferences. Leave empty for default one. | "de.mbsplugins.MyApp" |
| Key | The key for the value lookup. | "Username" |

### Result

Returns text or error.

### Description

Queries data type for a preferences entry.  
Types may be Text, Data, Integer, Double, Boolean, Array or Dictionary.  
### Examples

Query type of an entry on Mac:

 MBS ( "Preferences.GetValueType"; "com.filemaker.client.advanced12"; "Preferences:FileCacheSize")  
### See also

- [Preferences.GetValue](PreferencesGetValue.md)
- [Preferences.SetValue](PreferencesSetValue.md)

### Release notes

- **Version 9.3**
    - Added [Preferences.GetValueType](http://www.mbsplugins.eu/PreferencesGetValueType.shtml) function.

### Blog Entries

- [Neues vom MBS Plugin 9.3](https://www.mbsplugins.de/archive/2019-09-13/Neues_vom_MBS_Plugin_93/monkeybreadsoftware_blog_filemaker)
- [Whats new in MBS FileMaker Plugin version 9.3](https://www.mbsplugins.de/archive/2019-08-17/Whats_new_in_MBS_FileMaker_Plu/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 9.3pr5](https://www.mbsplugins.de/archive/2019-07-13/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 4th July 2019 , last changed 4th July 2019

  
[Preferences.GetValue](PreferencesGetValue.md) - [Preferences.HasValue](PreferencesHasValue.md)

[HTML Version](PreferencesGetValueType.shtml)