Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3    Statistic    FMM    Blog  


Checks if a preference value is defined.

Component Version macOS Windows Linux Server iOS SDK
Preferences 6.0 ✅ Yes ✅ Yes ❌ No ✅ Yes, on macOS and Windows ✅ Yes
MBS( "Preferences.HasValue"; Domain; Key )   More


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"


Returns 0, 1 or error.


Checks if a preference value is defined.

See also

Example Databases

Blog Entries

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

Preferences.GetValueType - Preferences.SetTextSelectionWithDragAndDrop

Feedback: Report problem or ask question.

MBS Xojo Plugins

Start Chat