83
DELETE OBJECT Directive
Remove Windows Object
Format
DELETE OBJECT com_id[,ERR=stmtref]
Where:
com_id
Numeric variable to receive a handle (memory pointer to the COM
object).
stmtref
Program line number or label to transfer control to.
Description
Use DELETE OBJECT to remove/disconnect associated Windows COM objects
(OCX/OLE/ActiveX) from the screen.
Note: An OCX / OLE / ActiveX object is automatically destroyed when the window
it was defined in is dropped.
Example:
0010
DEF OBJECT handle,@(2,2,70,16)="Shell.Explorer"
0020
errcode=handle'Navigate2("www.pvx.com")
0030
input *
0040
DELETE OBJECT handle
For information on the creation of an OCX (Object Component eXtension) object, see
Note: The DELETE OBJECT and DROP OBJECT directives can be used interchangeably
regardless of the object being dropped. For further information, refer to the DROP