VBScript IsObject Function

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."

Examples

Example 1

<%

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

%>

The output of the code above will be:

True

Example 2

<%

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

%>

The output of the code above will be:

False

❮ Complete VBScript Reference