Real newbie question
Posted: Sat Nov 22, 2003 6:29 pm
Hi,
My first qbasic program, and I'm chuffed.
In two or three places I use coding like:-
C$=inkey$
do
loop until c$>< ""
looking for a Y for yes, N for no or E for exit etc.
problem I got is if user enters yes not just Y the next bit of similar coding seems to pick up the E of yes and thingy up the whole thing by exiting.
I would prefer to use inkey$ rather than input$.
Is there a way of clearing the buffer just before the inkey$ statement.
Thanks for your time guys.
MikeG
My first qbasic program, and I'm chuffed.
In two or three places I use coding like:-
C$=inkey$
do
loop until c$>< ""
looking for a Y for yes, N for no or E for exit etc.
problem I got is if user enters yes not just Y the next bit of similar coding seems to pick up the E of yes and thingy up the whole thing by exiting.
I would prefer to use inkey$ rather than input$.
Is there a way of clearing the buffer just before the inkey$ statement.
Thanks for your time guys.
MikeG