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 (11 lines) | stat: -rw-r--r-- 270 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
10 REM PC-BASIC test 
20 REM test MID$ with overlap
25 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
30 A$="12345678": B$="abcdefgh"
40 MID$(A$,4)=B$ 
50 PRINT#1, "#"; A$ ;"# #"; B$; "#"
60 A$="12345678" 
70 MID$(A$,3,3)=B$ 
80 PRINT#1, "#"; A$ ;"# #"; B$; "#"
90 CLOSE