The following program (a.pbs) will compile with PBDos 3.5 and run
using a dos environment:
CLS
f%=FREEFILE: OPEN "a.pbs" FOR INPUT AS #f%
FOR i%=1 TO nt%-1: LINE INPUT #f%,l$: NEXT i%
DO WHILE NOT EOF(f%)
i%=0 'unbreak compiler
CALL vgasu() 'fixme: cause compiler to fail!
FOR i%=1 TO 25
IF EOF(f%) THEN EXIT LOOP
LINE INPUT #f%,l$
PRINT USING "#####: &";nt%,l$
nt%=nt%+1
NEXT i%
LOOP
CLOSE #f%
SUB vgasu()
END SUB
Remove the line (or commented out) will cause the compile to
freeze after pass 1...
Please advise, thanks...
Ed
------------------
using a dos environment:
CLS
f%=FREEFILE: OPEN "a.pbs" FOR INPUT AS #f%
FOR i%=1 TO nt%-1: LINE INPUT #f%,l$: NEXT i%
DO WHILE NOT EOF(f%)
i%=0 'unbreak compiler
CALL vgasu() 'fixme: cause compiler to fail!
FOR i%=1 TO 25
IF EOF(f%) THEN EXIT LOOP
LINE INPUT #f%,l$
PRINT USING "#####: &";nt%,l$
nt%=nt%+1
NEXT i%
LOOP
CLOSE #f%
SUB vgasu()
END SUB
Remove the line (or commented out) will cause the compile to
freeze after pass 1...
Please advise, thanks...
Ed
------------------
Comment