Previous Page | Next Page

SCL Methods for Automating OLE Objects under Windows

_IN_ERROR_



Returns an object's ERROR status.
Syntax
Details
Example

Syntax

CALL NOTIFY(OLE-object-name,'_IN_ERROR_',error-status<,error-msg>);
CALL SEND(OLE-object-id,'_IN_ERROR_',error-status<,error-msg>);

Argument Character (C) or Numeric (N) Description
error-status
N returns a value indicating whether an automation error has been encountered for the object.
error-msg
C returns the automation error message.


Details

Errors encountered from automation calls can be detected using _IN_ERROR_. The _IN_ERROR_ method returns the status of the last automation call and should be called before any subsequent automation calls.


Example

The following example detects that an error was encountered during the previous _GET_PROPERTY_ call:

length errmsg $ 200;
call send(objid,'_GET_PROPERTY_',
          'ActiveObject', actobj);
call send(objid,'_IN_ERROR_',inerror, errmsg);
if inerror then
   link handle_err;

Previous Page | Next Page | Top of Page