01-29-2003, 10:00 PM
You were only testing the first byte in K$. Your test will pass for any keystroke involving a zero ascii code (and there are a great many of those, such as ALT key sequences). Also, when you assign K$ to the return from INKEY$, put it in a loop, e.g.,
K$ = ""
WHILE K$ = ""
K$ = INKEY$
WEND
Otherwise, you'll likely miss the opportunity to press a key. (INKEY$ doesn't pause program execution, waiting for the keypress.)
K$ = ""
WHILE K$ = ""
K$ = INKEY$
WEND
Otherwise, you'll likely miss the opportunity to press a key. (INKEY$ doesn't pause program execution, waiting for the keypress.)
ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.