Ole4D Methods

OCDestroyObject (p_AreaVar)


Destroys the ole object associated to the area.

Parameters
Parameter Type   Description
p_AreaVar Longint -> Variable of the plug-in area.


Return Values
If the area does not contain an Ole object the method does nothing and returns 0.
Destroying the Ole object will cause the destruction of all script hosts in which the object was declared.

Example
$i := OCCreaFromProgId(OleObj;“InetCtls.Inet”)
` some processing with the Ole object
$i := OCDestroyObject(OleObj)


See Also
OCCreaFromFile, OCCreaFromProgId , OCCreaFromCLSID, OCCreaFromBlob