Macro Scheduler 15

Error Handling

Error dialogs can be suppressed by setting IGNOREERRORS to 1:

 

Let>IGNOREERRORS=1

 

To retrieve the last error use the LAST_ERROR variable.

 

A custom error subroutine can be called when an error occurs by setting ONERROR:

 

Let>ONERROR=subroutine_name

 

E.g.

 

Let>ONERROR=MyErrorHandler

 

..

..

 

SRT>MyErrorHandler

  TimeStamp>%SCRIPT_DIR%\error.log,LAST_ERROR   

END>MyErrorHandler