_IN_ERROR_

Returns an object's ERROR status.

Syntax

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

Details

OLE Arguments
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.
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;