external handlr ... call fxalt(handlr) or call fxalt($N)
FXALT is used to define the "alternate error handler" for a program. The "alternate error procedure" is called (or transferred to for $N) when an error occurs for which use of the alternate error procedure was specified by a call to FXOPT.
A return statement in subroutine "handlr" causes execution to be continued at the next executable statement following the statement that caused the error.
Care must be taken to avoid a loop in the error handling procedure.
Copyright © 1996, Thinkage Ltd.