Skip to content

Reg_GetVariableType

Gets the type of the requested variable.

Reg_GetVariableType(sHandle, sKey, sVariable) as Boolean

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

Subkey path

Name of variable to check type of

Result will be stored in gsValue

Possible results are: String, Long or Integer. Multi-string and binary values return Variant().

Note: Returned is the type of the VALUE. Not the type of the variable itself. To get the registry data type, such as REG_SZ, use Reg_GetValueType.

If the variable doesn’t exist, the function returns FALSE.

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 Constants Package Property Variables