Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
THE WORLD'S LARGEST WEB DEVELOPER SITE

VBScript IsObject Function


❮ Complete VBScript Reference

The IsObject function returns a Boolean value that indicates whether the specified expression is an automation object. It returns True if expression is an automation object; otherwise, it returns False.

Syntax

IsObject(expression)

Parameter Description
expression Required. An expression

Examples

Example 1

<%

Set x=CreateObject("vbscript.regexp")
response.write(IsObject(x))

%>

The output of the code above will be:

True
Show Example »

Example 2

<%

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

%>

The output of the code above will be:

False
Show Example »

❮ Complete VBScript Reference