Chapter Contents

Previous

Next
OLE Automation Class: _inError

OLE Automation Class: _inError



Returns an object's ERROR status


Syntax
Details
Example

Syntax

CALL SEND (OLE-instance, '_inError', error-status<, error-msg>);

Argument Type 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

_inError can detect errors encountered from automation calls. _inError 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 _getProperty call:

call send(objid,'_getProperty',
         'ActiveObject', actobj);
call send(objid,'_inError',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.