Remote-processing CAMBASIC Instrukcja Użytkownika Strona 76

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 208
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 75
Commands - 43
ERL
System Variable
SYNTAX: n = ERL
PURPOSE: To return the line number associated with an error.
REMARK S: The function returns the line number of the last error encountered by CAMBASIC.
RELATED: ERR, ON ERR, RESUME
EXAMPLE: 10 ON ERR GOTO 50 : 'enable error trapping
20 INPUT"Enter a number to divide by. (0 will cause error):”,A
30 B=10 / A
40 GOTO 20
50 PRINT"Error#" ; ERR” ; occurred on line#” ; ERL
60 ON ERR GOTO 50 : ‘re-enable error trapping
70 RESUME NEXT : ‘resume at next statement after error
ERROR: none
Przeglądanie stron 75
1 2 ... 71 72 73 74 75 76 77 78 79 80 81 ... 207 208

Komentarze do niniejszej Instrukcji

Brak uwag