Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to get a shift+tab into the program?
#8
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.)
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.
Reply


Messages In This Thread
agamemnus - by Agamemnus - 01-28-2003, 08:53 PM
KISS - by moosecode - 01-28-2003, 09:12 PM
The "Subprogram not defined" error... - by Glenn - 01-28-2003, 09:20 PM
See relsoft's answer... - by Glenn - 01-29-2003, 10:00 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)