MyChat Scripts Engine: RegSetString
Saving a text string to the registry.
Syntax
function RegSetString(iRootKey: cardinal; sName: string; sValue: string): boolean;
Parameters and return values
Parameter |
Type |
Value |
iRootKey |
cardinal |
registry root. List of available keys; |
sName |
string |
branch, registry key, where the text string is saved; |
sValue |
string |
key value. |
Function result
Boolean value. True, if the function completed successfully; False, if the error occurs.
Example
var
sToday: string;
begin
sToday := FormatDateTime('mmddyyyy', Now);
RegSetString(HKEY_CURRENT_USER, 'Software\MyChatServerScripts\CurrentDate', sToday);
end.
Script work result