Specifies a statement to jump to if anerror occurs in the current procedure.
NOTE: Do not put a colon after this parameter.
NOTE: The label namenull
has a special use with this procedure. If the name of the label isnull
, the effect of ON_ERROR_GOTO is canceled and normal processing continues.
PRO Proc1
ON_ERROR_GOTO, Proc1_Failed
ON_ERROR_GOTO, null
RETURN
Proc1_Failed:
PRINT, !Err, !Err_String
END