ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
424 B

  1. 10 rem onerr.bas -- test bwBASIC ON ERROR GOSUB statement
  2. 20 print "Test bwBASIC ON ERROR GOSUB statement"
  3. 30 on error gosub 100
  4. 40 print "The next line will include an error"
  5. 50 if d$ = 78.98 then print "This should not print"
  6. 60 print "This is the line after the error"
  7. 70 end
  8. 100 rem Error handler
  9. 110 print "This is the error handler"
  10. 120 print "The error number is ";err
  11. 130 print "The error line is ";erl
  12. 150 return