[futurebasic] ON ERROR FN

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1999 : Group Archive : Group : All Groups

From: Doug Stemen <stemenda@...>
Date: Sat, 01 May 1999 07:43:34 -0400
I am using ON ERROR FN doerrors to trap disk errors like file busy
(system error -49 & -54). I am having difficulty figuring out where FB
resumes processing  after  LOCAL FN doerrors  displays an error message
in a window, sets ERROR=_noerr and SYSERROR=_noerr, and then exits the
FN. ON ERROR FN is set only in the main program, but errors can occur in
main program Local Fn's or in include files.

It would seem that FB should always resume processing at the line of
code immediately following the offending statement (in this case OPEN
"R".....), but it doesn't .

Anyone know where FB resumes processing after a disk error is
encountered & handled with ON ERROR FN?

Thanks in advance.