10 REM PC-BASIC test
20 REM VARPTR function
30 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
40 ON ERROR GOTO 10000
45 A$="1"
50 PRINT#1, VARPTR
60 PRINT#1, VARPTR(
70 PRINT#1, VARPTR("ABC"
80 PRINT#1, VARPTR(1
90 PRINT#1, VARPTR(1.5
100 PRINT#1, VARPTR(-1)
110 PRINT#1, VARPTR(1)
120 PRINT#1, VARPTR(-1.5)
130 PRINT#1, VARPTR(1.5)
140 PRINT#1, VARPTR(-1.5D2)
150 PRINT#1, VARPTR(1.5D2)
160 PRINT#1, VARPTR("ABC")
200 PRINT#1, VARPTR(0)
210 PRINT#1, VARPTR(256)
220 PRINT#1, VARPTR(32768)
230 PRINT#1, VARPTR(65536)
240 PRINT#1, VARPTR(1.701412E+38)
250 PRINT#1, VARPTR(1.701411834604692D+38)
300 PRINT#1, VARPTR(1)
310 PRINT#1, VARPTR(#1)
320 PRINT#1, VARPTR(1,1)
330 PRINT#1, VARPTR(A$)
340 PRINT#1, VARPTR(B$)
1050 PRINT#1, VARPTR$
1060 PRINT#1, VARPTR$(
1070 PRINT#1, VARPTR$("ABC"
1080 PRINT#1, VARPTR$(1
1090 PRINT#1, VARPTR$(1.5
1100 PRINT#1, VARPTR$(-1)
1110 PRINT#1, VARPTR$(1)
1120 PRINT#1, VARPTR$(-1.5)
1130 PRINT#1, VARPTR$(1.5)
1140 PRINT#1, VARPTR$(-1.5D2)
1150 PRINT#1, VARPTR$(1.5D2)
1160 PRINT#1, VARPTR$("ABC")
1200 PRINT#1, VARPTR$(0)
1210 PRINT#1, VARPTR$(256)
1220 PRINT#1, VARPTR$(32768)
1230 PRINT#1, VARPTR$(65536)
1240 PRINT#1, VARPTR$(1.701412E+38)
1250 PRINT#1, VARPTR$(1.701411834604692D+38)
1300 PRINT#1, VARPTR$(1)
1310 PRINT#1, VARPTR$(#1)
1320 PRINT#1, VARPTR$(1,1)
1330 PRINT#1, VARPTR$(A$)
1340 PRINT#1, VARPTR$(B$)
9999 END
10000 PRINT#1, ERR, ERL
10010 RESUME NEXT
