Chapter Contents |
Previous |
Next |
OLE: _inError |
Syntax | |
Details | |
Example |
Syntax |
CALL NOTIFY (OLE-object, '_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 |
Errors encountered from automation calls can be detected using _inError. The _inError 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 _getProperty call:
call notify('obj1','_getProperty', 'ActiveObject', actobj); call notify('obj1','_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.