File: TEST.BAS

package info (click to toggle)
pcbasic 2.0.7-8
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 35,416 kB
  • sloc: python: 28,411; sh: 103; makefile: 10
file content (17 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
10 REM PC-BASIC test 
20 REM RESUME syntax
25 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
30 ON ERROR GOTO 50
40 A=-1:COLOR A:PRINT#1, A:GOTO 60
50 A=A+1:PRINT#1, "err: "; A:RESUME
60 ON ERROR GOTO 80
70 COLOR -1: GOTO 90
80 PRINT #1, "ERR!": RESUME NEXT
90 ON ERROR GOTO 200
100 PRINT#1, 100: X
110 PRINT#1, 110
120 PRINT#1, 120
130 END
200 PRINT#1, "err": RESUME 120