08-11-2003, 06:25 AM
Quote:... besides, if the user presses more than one key, who cares?
Toonski, who cares? The program cares. If the user hit more than 1 key, the first one gets processed and the second or more stay in the buffer. Later if you do another input$ or inkey$ you will process these left over characters. The worst part is that they my be valid for the second input$ or inkey$. In this case the user sees the prompt but never gets a chance to key anything. The program took off without him, processing the stuff in the buffer.
I'm not making this up. This is a real problem especially in a large data entry programs that have a lot of yes/no questions which, for speed, the answers are processed as ONE KEY ONLY with no Carriage Return.
I know you understand 'cause you're smart. Sometime you just like to kibitz.
*****