Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
%GetRegValue function
Function
The function retrieves the value of the specified key in the Windows system registryRegistry.
Declaration
Blok kódu | ||||
---|---|---|---|---|
| ||||
UNIVAL %GetRegValue( TEXT in keyNameStr, in defValue ) |
Parameters
keyNameStr | Key name in the Registry. |
defValue |
The default value. |
Note
The function will read a value 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 into the read key. So, the function generates the key, if it does not exist.
The type of return value is given by the type of the read value, or by the type of default value if the key does not exist.
The type of return value is given by the type of the read value, or by the type of default value if the key does not exist.
Example
In the following example, the value of registry key HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Excel\Options\OPEN is performed:
Blok kódu | ||||
---|---|---|---|---|
| ||||
TEXT _value _value := %GetRegValue("HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Excel\Options\OPEN","") |
Related topics