Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

VBScript IsObject Function

Returns a Boolean value indicating whether an expression references a valid Automation object.

Syntax: VBScript IsObject Function

IsObject(expression)

Arguments: VBScript IsObject Function

expression

Any expression.

Remarks: VBScript IsObject Function

IsObject returns True if expression is a variable of Object subtype or a user-defined object; otherwise, it returns False.

The following example uses the IsObject function to determine if an identifier represents an object variable:

Dim MyInt, MyCheck, MyObject

Set MyObject = Me

MyCheck = IsObject(MyObject)   ' Returns True.

MyCheck = IsObject(MyInt)   ' Returns False.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.