DADiSP Worksheet Functions > Function Categories > ActiveX > Automation Client > RELEASE
Releases an ActiveX server object.
RELEASE(object)
object |
- |
An integer, a handle to an ActiveX object. |
An integer, 1 if successful else 0.
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.
Release is not required on object handles that fall out of scope. For example:
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.