Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

%SetDefaultRegValue function


Function
The function writes the default value of the specified key into the Windows system registry.
Declaration


Blok kódu
languageesl
themeConfluence
BOOL %SetDefaultRegValue(
   TEXT in keyNameStr, 
   TEXT in Value
 )
Parameters


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

Registry editor
 


Blok kódu
languageesl
themeRDark
BOOL _bOk
 _bOk := %SetDefaultRegValue("HKEY_LOCAL_MACHINE\SOFTWARE\Ipesoft","test")