VBScript IsObjectFunction
Complete VBScript Reference Manual
The IsObject function returns a boolean value that indicates whether the specified expression is an automation object. Returns True if the expression is an automation object, otherwise returns False.
Syntax
IsObject(expression)
| Parameters | Description |
|---|---|
| expression | Required. An expression. |
Example
Example 1
<script type="text/vbscript">
Set x=document
document.write(IsObject(x))
</script>
Set x=document
document.write(IsObject(x))
</script>
The above example outputs:
True
Try it »
Example 2
<script type="text/vbscript">
x="Peter"
document.write(IsObject(x))
</script>
x="Peter"
document.write(IsObject(x))
</script>
The above example outputs:
False
Try it »
Complete VBScript Reference Manual Other Extensions