08-10-2003, 06:31 AM
Toonski's use of INKEY$ gave me an idea.
Hope you allow this, it's actually more than 3 lines.
This is a routine (which can be the guts of a SUB) which gets one and only one character from the user, and makes sure that he didn't enter more than one by gobbling up any excess characters.*****
Hope you allow this, it's actually more than 3 lines.
This is a routine (which can be the guts of a SUB) which gets one and only one character from the user, and makes sure that he didn't enter more than one by gobbling up any excess characters.
Code:
DO
TheKey$=INKEY$
LOOP WHILE TheKey$=""
WHILE INKEY$<>"":WEND