Login
Back to forumReply to this topicGo to last reply

Posted By

SVS
on 2019-04-03
05:56:31
 Input warning (??extra ignored)

Does anybody know how to acknowledge if during a program, the INPUT command went into "?? extra ignored" condition?
I mean is there any flag or memory location the program itself can test and consequently operate?

Posted By

Basman
on 2019-04-26
06:26:29
 Re: Input warning (??extra ignored)

I don't think you can do that in basic only, because the error message is shown before the next basic instruction is executed. With asm, you may hijack the error vector to a routine that skips printing the message for that specific error and sets a flag in ram that can be checked with a PEEK statement.
The best way to deal with this anyway is to not use INPUT at all and rely on an asm routine called via SYS. I made one that works well and fills a basic string variable. This way you can filter out any unwanted keypresses such as cursor movements.

Posted By

gerliczer
on 2021-06-13
03:48:28
 Re: Input warning (??extra ignored)

Thread necromancy. What you are looking for SVS is, I think, the TRAP line number BASIC instruction. See here: plus4encyclopedia/500111 or here: https://www.c64-wiki.com/wiki/TRAP.



Back to topReply to this topic


Copyright © Plus/4 World Team, 2001-2024