Skip to content

Reg_SetInteger

Sets the value of a registry variable of type integer (REG_DWORD). If the key doesn’t exist, it’s created.

Reg_SetInteger(sHandle, sKey, sVariable, iValue) as Boolean

Registry hive, for example HKLM. For all accepted values, see Registry Functions.

Subkey path

Name of variable to contain the value

Value of the type Integer or Long

If bStatus Then bStatus = Reg_SetInteger("HKLM", "Software\KeyName", "ValueName", 5)

Scripting Guidelines

Registry Functions Constants Package Property Variables