Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

VBScript IsObject function


May 13, 2021 VBScript


Table of contents


VBScript IsObject function

The VBScript IsObject function returns a Boolean value that indicates whether the expression refers to a valid "auto" object.


VBScript IsObject function Complete VBScript reference manual

The IsObject function returns a Boolean value indicating whether the specified expression is an automation object. True if the expression is an automation object, otherwise False is returned.

Grammar

IsObject(expression)

parameter describe
expression Required.An expression.

Instance 1

<script type="text/vbscript">

Set x=document
document.write(IsObject(x))

</script>

The above example output results:

True

Try it out . . .

Instance 2

<script type="text/vbscript">

x="Peter"
document.write(IsObject(x))

</script>

The above example output results:

False

Try it out . . .

VBScript IsObject function Complete VBScript reference manual