%SetRegValue function


Function
The function writes given value into the Windows system registry.
Declaration
BOOL %SetRegValue(
   TEXT in keyNameStr, 
        in Value
 )

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

Return value
@TRUE on success.
Note
The function will write the given value into the registry. The name of written key is keyNameStr. If the key does not exist, the function generates it.
There are supported the following types of values to write:
  • Bool
  • Text
  • Integer

Example
In the following example, there is performed the writing the value HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Excel\Options\OPEN into the registry:


 
BOOL _bOk
 _bOk := %SetRegValue("HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Excel\Options\OPEN","hodnota")

Napíšte komentár