Contents - Index


OnError (Macro Command)

 

ONERROR GOTO XX

Normally, if an error of any kind occurs during execution of macro commands, execution will stop and an error message will be posted.  The ONERROR macro command provides a way for this default behavior to be modified.  After this command has been executed, an error will result in a jump to the macro command having label XX.  A line with this label must appear in the macro file.  Labels must be numerical values ranging between 1 and 30000 followed by a colon (:).  This command can appear as many times as desired.  The control will transfer to the macro command with the label for the most recently executed ONERROR command.  To return to default behavior, enter ONERROR GOTO 0.

 

MacroCommands