SCL Methods for Automating OLE Objects under Windows |
Returns an object's ERROR status.
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. |
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.
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;
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.