<< Prev        Next >>

ID : 7229

IsNothing

Function

Checks if a specified object has been created.

Syntax

IsNothing (object)

Guaranteed Entry

object
Specify an object to check if it has been created.

Return Value

Returns the result of checking if the specified object has been created as integer type data.

0(False) The specified object has not been created.
-1(True) The specified object has been created.

Description

Checks if a specified object has been created.

Related Terms

Cao Object

Example

Sample code shows how to release an object obtained using AddController.

Sub Main()
    Dim ctrl As Object
    ctrl = Cao.AddController( "", "CaoProv.Dummy", "", "" )

    'Release process 
    If Not IsNothing(ctrl) Then
       If Cao.Controllers.IsMember(ctrl.Name) Then
          Cao.Controllers.Remove ctrl.Name
          ctrl = Nothing
       End If
    End If
End Sub

ID : 7229

<< Prev        Next >>