RELEASE

Purpose:

Releases an ActiveX server object.

Syntax:

RELEASE(object)

object

-

An integer, a handle to an ActiveX object.

Returns:

An integer, 1 if successful else 0.

Example:

word = createobject("word.application");

word.visible = 1;

release(word);

 

Starts an instance of Word as an ActiveX server, makes it visible, then releases the word object.

Remarks:

Release is not required on object handles that fall out of scope. For example:

 

wtest()
{
    local word;
 
    word = createobject("word.application");
    word.visible = 1;
}

 

RELEASE is not required in the above SPL routine because the local variable word falls out of scope when the routine terminates. However, RELEASE is useful for explicitly terminating ActiveX connections.

See Also:

CREATEOBJECT

GETOBJECT

ISOBJECT