🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.pc
Article #5695

IBM BASIC Compiler v2.0 help needed

#5695
From: Mark D. Freeman
Date: Tue, 18 Feb 1986 22:47
39 lines
1884 bytes
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.
< < < < < < < < < < < < < < < < < < < <> > > > > > > > > > > > > > > > > > > >
Technical Details
Message-ID: <1338@osu-eddie.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!osu-eddie!mdf

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.3 alpha 5/22/85; site osu-eddie.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!osu-eddie!mdf
From: mdf@osu-eddie.UUCP (Mark D. Freeman)
Newsgroups: net.micro.pc
Subject: IBM BASIC Compiler v2.0 help needed
Message-ID: <1338@osu-eddie.UUCP>
Date: Tue, 18-Feb-86 17:47:33 EST
Article-I.D.: osu-eddi.1338
Posted: Tue Feb 18 17:47:33 1986
Date-Received: Wed, 19-Feb-86 03:53:59 EST
Distribution: na
Organization: StrongPoint Systems, Inc. (guest of Ohio State U.)
Lines: 39
Keywords: ON ERROR, SUBPROGRAMS