Owner's manual
Publication 1746-RM001A-US-P
Execution Control and Interrupt Support Functions 8-13
Example
>1 REM EXAMPLE PROGRAM
>10 ONERR 500
>20 FORI=5TO0STEP -1
>30 PRINT 1/I
>40 NEXT I
>50 END
>500 PRINT “ERROR CODE WAS ”,XBY(257)
>510 END
READY
>RUN
.2
.25
.33333333
.5
1
ERROR CODE WAS 10
READY
>
A GOTO statement can replace the END statement in this example to provide a
method of user programmed error recovery.