Is Object Of Class Method
The Is Object Of Class method determines if an object is of a given class. It returns one of the following values:
-1 (negative one). The object is of the type that the className argument specifies.
0 (zero). The object is not of the type that the className argument specifies.
You can use this method only in an If statement.
Format
If Typeof objectVariable Is className Then...
You must use this format. You cannot combine this method with a Boolean operator.
The following table describes the arguments that you can use with this method.
Argument | Description |
---|---|
objectVariable |
The object to be examined. |
className |
The class that Siebel CRM uses to compare the object. |
You use the following format to determine if an object does not belong to a class:
If Typeof objectVariable Is className Then
[Perform some action.]
Else
[Perform some action.]
End If