Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!utfyzx!sq!shanku From: shanku@sq.UUCP Newsgroups: comp.sys.apple Subject: Re: comma input Message-ID: <1987Jul9.154733.1137@sq.uucp> Date: Thu, 9-Jul-87 15:47:33 EDT Article-I.D.: sq.1987Jul9.154733.1137 Posted: Thu Jul 9 15:47:33 1987 Date-Received: Sat, 11-Jul-87 08:35:15 EDT References: <8706300937.aa12986@SMOKE.BRL.ARPA> Reply-To: shanku@sq.UUCP (Shanku Niyogi) Organization: SoftQuad Inc., Toronto Lines: 24 Checksum: 19926 In article <8706300937.aa12986@SMOKE.BRL.ARPA> CC004019@BROWNVM.BITNET (Christopher Chung) writes: >Is there a way to have the INPUT statement in BASIC not give the error >?EXTRA IGNORED when a comma is inputted along with the rest of the characters? >I remember reading something about this a long time ago but can't remember >where. Can anyone help? > There was an article some time back in COMPUTE magazine which got rid of this error, and also allowed formulas to be entered as input. The EXTRA IGNORED error is strange because an ON ERR GOTO will not catch it. If you can't find the article, you can always write your own input routine using the GET statement. It would go something like this: 1000 R$="" 1010 PRINT "?";:REM INPUT PROMPT 1020 GET A$ 1030 IF A$=CHR$(13) THEN GOTO 1060:REM DONE 1040 IF A$=CHR$(8) AND LEN(R$)>0 THEN PRINT A$;:R$=LEFT$(R$,LEN(R$)-1):GOTO 1020:REM BACKSPACE 1050 R$=R$+A$:PRINT A$;:GOTO 1020 1060 RETURN You could use this to add all sorts of features to your input, like a different prompt, or default values.