Page tree
Skip to end of metadata
Go to start of metadata

%SetDefaultRegValue function

The function writes the default value of the specified key into the Windows system registry.
BOOL %SetDefaultRegValue(
   TEXT in keyNameStr, 
   TEXT in Value

keyNameStr Key name in the Registry.
Value Value to write.

Return value
@TRUE on success.
The function will write a default value of the key to the registry. The name of written key is keyNameStr. If the key does not exist, the function creates it.
The type of default value in registry is String, therefore only Text type of Value parameter is supported.
In the following example, the default value of the key HKEY_LOCAL_MACHINE\SOFTWARE\Ipesoft is written into the registry:

Registry editor
 _bOk := %SetDefaultRegValue("HKEY_LOCAL_MACHINE\SOFTWARE\Ipesoft","test")

Write a comment…