The function retrieves the default value of the specified key in the Windows system registry.
Declaration
TEXT %GetDefaultRegValue(
TEXT in keyNameStr,
TEXT in defValue
)
Parameters
keyNameStr
A key name in the Registry.
defValue
Default value.
Note
The function will read a default value of the key from the registry. The name of the read key is keyNameStr. If the key does not exist, the function will return the default value defValue and write this value as the default value of the key. So, the function generates the key, if it does not exist. The type of return value is TEXT as the default value of registry key is a string.
Example
In the following example, the default value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Ipesoft is performed:
TEXT _value
_value := %GetDefaultRegValue("HKEY_LOCAL_MACHINE\SOFTWARE\Ipesoft","")
Pridať komentár