Denso BHT-200QW Dokumentacja Strona 243

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 587
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 242
Chapter 14. Statement Reference
235
____________________________________________________________________
Error control statement
ON ERROR GOTO
Enables error trapping.
____________________________________________________________________
Syntax:
Syntax:Syntax:
Syntax:
ON ERROR GOTO label
Description:
Description:Description:
Description:
ON ERROR GOTO enables error trapping so as to pass control to the first line of an
error-handling routine specified by label if an error occurs during program execution.
• To return control from an error-handling routine to a specified program location, you use
a RESUME statement in the error-handling routine.
Specification of zero (0) to label disables error trapping.
If ON ERROR GOTO 0 is executed outside the error-handling routine, the occurrence of
any subsequent error displays a regular run-time error code and terminates the
program.
If ON ERROR GOTO 0 is executed inside the error-handling routine, the Interpreter
immediately displays the regular run-time error code and terminates the program.
You cannot trap errors which may occur during execution of the error-handling routine.
The occurrence of such an error immediately displays a run-time error code and
terminates the program.
You can use ON ERROR GO TO instead of ON ERROR GOTO.
Syntax errors:
Syntax errors:Syntax errors:
Syntax errors:
Error code and message Meaning
error 71: Syntax error
label has not been defined.
label is missing.
Reference:
Reference:Reference:
Reference:
Statements: RESUME
Functions: ERL and ERR
Przeglądanie stron 242
1 2 ... 238 239 240 241 242 243 244 245 246 247 248 ... 586 587

Komentarze do niniejszej Instrukcji

Brak uwag