Re: Problem with getKey


[Prev][Next][Index][Thread]

Re: Problem with getKey



I was not demonstrating how to check for a key, I was showing
how to flush the getkey buffer.
The routine John gave would go after the part I gave.


"I don't trust President Clinton. Or her husband."
--Jon, N9RUJ
jnieho38@calvin.edu              www.calvin.edu/~jnieho38




On Mon, 14 Oct 1996, John Logan wrote:


> On Mon, 14 Oct 1996, Jon Niehof wrote:
>
> > 0->a
> > While a=0
> > getKey->a
> > End
> > Then do your getKey thing.
>
> A slightly shorter way to wait for the user to press a button (or
> buttons) is the following:
>
> Repeat A==#
> getKy/->/A
> End
>
> where # is the number corresponding to the key of your choice, and of
> course, boolean operators can be used too when the user is to press one
> of several keys.
>


References: