Skip to content

Reg\_GetVariableType

Gets the type of the requested variable.

Reg_GetVariableType(sHandle, sKey, sVariable) as Boolean

sHandle (String)

HKEY-handle

sKey (String)

Subkey path

sVariable (String)

Name of variable to check type of

Result will be stored in gsValue

Possible results are: String, Long or Integer.

Note: Returned is the type of the VALUE. Not the type of the variable itself.

VBScript

If bStatus Then bStatus = Reg_GetVariableType("HKLM", "Software\KeyName", "ValueName")
If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)

Scripting Guidelines

Registry Functions