Reg_GetVariableType
Description
Section titled “Description”Gets the type of the requested variable.
Syntax
Section titled “Syntax”Reg_GetVariableType(sHandle, sKey, sVariable) as Boolean
Parameters
Section titled “Parameters”sHandle (String)
Section titled “sHandle (String)”HKEY-handle
sKey (String)
Section titled “sKey (String)”Subkey path
sVariable (String)
Section titled “sVariable (String)”Name of variable to check type of
Return value
Section titled “Return value”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.
Example
Section titled “Example”If bStatus Then bStatus = Reg_GetVariableType("HKLM", "Software\KeyName", "ValueName")If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)