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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Registry.SetValue
Sets a value on a registry key.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Registry | 7.2 | No | Yes | No | Yes, Windows only | No |
Parameters
| Parameter | Description | Example |
|---|---|---|
| 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. |
"Users\test" |
| Name | The name of the value. | "Hello" |
| Value | The value to set. | "World" |
| Type | The data type to store. | "text" |
Result
Returns OK or error.
Description
Sets a value on a registry key.Type can be Text, ExpandText, DWORD, BinaryHex, None, QWORD or List.
Use DWORD to save 32-bit integer number or QWORD to save 64-bit number.
For list, please pass a normal ¶ separated list and we translate it.
For BinaryHex type, please pass hex encoded data and we decode it before saving.
Examples
Set user name for FileMaker:
MBS( "Registry.SetValue"; "HKEY_CURRENT_USER\SOFTWARE\FileMaker\FileMaker Pro Advanced\16.0\Preferences"; "User Name"; "Mr. Miller"; "text")
Set initial file for FileMaker 19 or later:
MBS( "Registry.SetValue"; "HKEY_CURRENT_USER\SOFTWARE\FileMaker\FileMaker Pro\19.0\Preferences"; "UseInitialfile"; 1; "DWORD") &
MBS( "Registry.SetValue"; "HKEY_CURRENT_USER\SOFTWARE\FileMaker\FileMaker Pro\19.0\Preferences"; "Initialfile"; "filewin:/C:/Users/Christian/Desktop/JavaScript.fmp12"; "text")
See also
Blog Entries
Created 20th March 2017, last changed 16th June 2020
Registry.ListValues - RemoteControl.ClickMouse
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins