Remote-processing CAMBASIC Instrukcja Użytkownika Strona 140

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 208
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 139
Commands - 107
RESUME
Statement
SYNTAX: RESUME
RESUME NEXT
RESUME line
PURPOSE: To continue program execution after an error recovery procedure has been performed.
REMARK S: If NEXT is not declared, the main program will resume operation by re-executing the statement that
originally caused the error. Every err or– handling routine must eventually end either by executing a
RESUME statement or by terminating the program.
If NEXT is specified, execution resumes at the statement immediately following the one which
caused the error.
When an error trap occurs, it has the effect of disabling the ON ERR GOTO statement that enabled
the trap. Any further error occurring prior to the execution of another ON E RR GOT O statement
will cause the termination of the program. An ON E RR GOT O statement may be included at the
end of the error– handling routine to maintain the error trap enabled.
Error traps may be nested in the same manner as GOSUBs and function calls, and the error routine
may begin with an ON ERR GOTO statement, with its own error– handling routine. Each
error– handling r outine must be term inated with a RESUME statement.
NOTE: You cannot use program labels with RESUME.
Make sure you re-declare error handling using ON ERR. When the error routine is executed, the
previous ON ERR is disabled.
Consider using EXIT CLEAR in an error handling routine. This will clear loop stacks and
subroutines. You can then start at the beginning of your program.
RELATED: ON ERR
ERROR: < RESUM E w/o ON/ ERR> if no corresponding error condition
< Can’t compile> if line does not exist
Przeglądanie stron 139
1 2 ... 135 136 137 138 139 140 141 142 143 144 145 ... 207 208

Komentarze do niniejszej Instrukcji

Brak uwag