File: onerrlbl.bas

package info (click to toggle)
bwbasic 2.20pl2-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,204 kB
  • ctags: 1,248
  • sloc: ansic: 21,002; makefile: 116
file content (12 lines) | stat: -rw-r--r-- 392 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
rem onerrlbl.bas -- test bwBASIC ON ERROR GOSUB statement with label
print "Test bwBASIC ON ERROR GOSUB statement"
on error gosub handler
print "The next line will include an error"
if d$ = 78.98 then print "This should not print"
print "This is the line after the error"
end
handler:
print "This is the error handler"
print "The error number is ";err
print "The error line   is ";erl
return