VBScript » Functions » IsObject

Version: 1.0

Syntax:
IsObject(Expression)

The IsObject function determines if the expression is an automation object.

Examples

Code:
<% Set anyvariable = Server.CreateObject("Scripting.FileSystemObject") %>
<% =IsObject(anyvariable) %>
Output:
True
Language(s): VBScript
Code:
<% =IsObject("This is a string, not an object.") %>
Output:
False
Language(s): VBScript

See Also: