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  


Queries value of key’s value.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Registry 7.2 No Yes Yes, Windows only No No

MBS( "Registry.GetValue"; Path; Name )


Parameter Description Example value
Path The path to the parent registry key.
Separated by \ you specify the path to the key you want.
Root can be Classes, CurrentUser, LocalMachine, Users, PerformanceData, CurrentConfig, DynData or the HKEY names.
Name The name of the value. "Hello"


Returns value or error.


Queries value of key’s value.
We return Text, Link or ExpandText as text.
Binary is returned hex encoded.
DWORD or QWORD is returned as numbers.
Lists are converted to FileMaker list.


Query value:

MBS( "Registry.GetValue"; "CurrentUser\Test"; "Hello")

Query FileMaker's printer settings:

MBS( "Registry.GetValue"; "HKEY_CURRENT_USER\SOFTWARE\FileMaker\FileMaker Pro Advanced\16.0\Preferences"; "Printer")

Query Windows product name:

MBS( "Registry.GetValue"; "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion"; "ProductName")

Query user name:

MBS( "Registry.GetValue"; "HKEY_CURRENT_USER\SOFTWARE\FileMaker\FileMaker Pro Advanced\16.0\Preferences"; "User Name")

Query FileMaker Cache Size:

MBS( "Registry.GetValue"; "HKEY_CURRENT_USER\SOFTWARE\FileMaker\FileMaker Pro Advanced\16.0\Preferences"; "Cache Size")

See also

Registry.FlushKey   -   Registry.GetValueType

Feedback: Report problem or ask question.

MBS Xojo Plugins