VBScript IsObject function
The IsObject function returns a Boolean value indicating whether the specified expression is automation object. If the expression is an automation object is returned True, otherwise False.
grammar
IsObject(expression)
参数 | 描述 |
---|---|
expression | 必需。一个表达式。 |
Examples
Example 1
<script type="text/vbscript">
Set x=document
document.write(IsObject(x))
</script>
Set x=document
document.write(IsObject(x))
</script>
Examples of the above output:
True
try it"
Example 2
<script type="text/vbscript">
x="Peter"
document.write(IsObject(x))
</script>
x="Peter"
document.write(IsObject(x))
</script>
Examples of the above output:
False
try it"
Complete VBScript Reference