Ole4D Methods

OCContainsObject(p_AreaVar)

Tests if the plug-in area contains an ole object.

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

Return Values
0 – if the plug-in area does not have an ole object associated.
1 – if the plug-in area contains an ole object.
If the area variable is not valid(i.e. there is no plug-in with this variable) returned value is the system error code for invalid parameter is returned.

Example
$i := OCCreaFromProgId(OLE4DVar;"WordDocument")
`check if word was created in the area
$i := OCContainsObject(OLE4DVar)
Case of
  :($i = 0)
    ALERT("Word document creation has failed.")
  :($i = 1)
    ALERT("Word document created.")
  Else
    ALERT("Word document creation has failed."+Char(13)+"Error Code:"+String($i)
End Case


See Also
OCSetPadding