Reg_SetInteger

Description

Set the value of a registry variable of type integer

 

Syntax

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

 

Parameters

sHandle (String)

HKEY-handle

sKey (String)

Subkey path

sVariable (String)

Name of variable to contain the value

iValue (Integer/Long)

Value of the type Integer or Long

 

Example

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

Scripting Guidelines

 

Related functions

Registry Functions