Description:
Returns a Boolean value - specifies whether an expression references a valid Automation object.
In the PROMOTIC system it is better to use the Pm.GetVarType method.
Syntax:
Boolean IsObject(Object expression)
Parameters:
expression | (Object) Any valid expression. |
---|
Return value:
true - If expression is of the Object type or a user-defined object
false - Otherwise
Example:
VBScriptSelect and copy to clipboard
Dim nInt, oObject, bCheck
Set oObject = pMe
bCheck = IsObject(oObject)
' Returns true
bCheck = IsObject(nInt)
' Returns false