[net.micro.pc] IBM BASIC Compiler v2.0 help needed

mdf@osu-eddie.UUCP (Mark D. Freeman) (02/19/86)

I have a system of BASIC programs, with several subprograms.  I have tried to
put an ON ERROR GOTO into one of these subprograms, but I keep getting ^SB
errors from the compiler.  Code example:

SUB FOO STATIC

		ON ERROR GOTO BAD.NAME

TRY.AGAIN:
		INPUT FILENAME$
		OPEN "O",15,FILENAME$
		EXIT SUB

BAD.NAME:
		LOCATE 24,10
		PRINT "Bad Filename, Try Again!"
		RESUME TRY.AGAIN

END SUB


I get ^SB errors at the label BAD.NAME and at the RESUME.  I tried moving the
BAD.NAME routine to be after the END SUB, which got rid of the error at BAD.
NAME, but of course, I got an error at the RESUME since TRY.AGAIN is in the
subprogram and the RESUME statement would not be.

Any ideas?  I'm stumped.

BTW, does anyone have any info on bug fixes or patches to this compiler.  I
have the virgin disk I bought about a year ago, and I keep hearing rumors...

-- 
< < < < < < < < < < < < < < < < < < < <> > > > > > > > > > > > > > > > > > > >
Mark D. Freeman                        			    mdf@osu-eddie.uucp
StrongPoint Systems, Inc.				    mdf@osu-eddie.arpa
Guest account at The Ohio State University		 !cbosgd!osu-eddie!mdf

I speak, therefore I disclaim everything I say.
< < < < < < < < < < < < < < < < < < < <> > > > > > > > > > > > > > > > > > > >