10 REM PC-BASIC test 
20 REM VIEW PRINT syntax
30 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
40 ON ERROR GOTO 10000
50 VIEW PRINT
60 VIEW PRINT 1
70 VIEW PRINT 1 TO
80 VIEW PRINT 1 TO 10
90 VIEW PRINT PRINT
100 VIEW PRINT 1, 10
110 VIEW PRINT 1 PRINT
120 KEY OFF: VIEW PRINT 1 TO 25
130 KEY ON: VIEW PRINT 1 TO 25
140 VIEW PRINT 1 TO 24
150 VIEW PRINT 10 TO 5
160 VIEW PRINT 0 TO 10
170 VIEW PRINT -1 TO 10
180 VIEW PRINT 1 TO 256
190 VIEW PRINT 1 TO 32768
9999 END
10000 PRINT#1, ERR, ERL
10010 RESUME NEXT
