Chapter Contents

Previous

Next
_IN_ERROR_

_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>);

Where... Is type... And...
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 prior to 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;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.