MyChat Scripts Engine: RegSetInt
Saving an integer with a sign.
Syntax
function RegSetInt(iRootKey: cardinal; sName: string; iValue: cardinal): boolean;
Parameters and return values
Parameter |
Type |
Value |
iRootKey |
cardinal |
registry root. List of available keys; |
sName |
string |
branch, registry key, where the integer is saved; |
iValue |
cardinal |
key value. |
Function result
Boolean value. True, if the function completed successfully; False, if the error occurs.
Example
var
i: integer;
begin
for i := 0 to 9 do
RegSetInt(HKEY_CURRENT_USER, 'Software\MyChatServerScripts\TestRegSetInt' + inttostr(i), i);end.
Script work result