Remote Processing Coorporation RPC-320 Specifikace Strana 69

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 186
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 68
Commands - 39
ERL
System Variable
SYNTAX: n = ERL
PURPOSE: To return the line number associated with an error.
REMARKS: 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
Zobrazit stránku 68
1 2 ... 64 65 66 67 68 69 70 71 72 73 74 ... 185 186

Komentáře k této Příručce

Žádné komentáře