Re: Live Tutoria?
>
>-- [Declared in file Inkey.e]
>global function Inkey()
> return get_key()
>end function
>
>then in some other code after you include the file and you can use Inkey()
>freely.
>
>include Inkey.e
>
>integer char
>char = 0
>
>-- Print the pressed key until Q is hit
>while char != 'q' do
> char = Inkey()
> ? char
>end while
>
>
So I can conclude the following:
Prekey is used to clear the keyboard buffer. This can probably be a
procedure, as it returns nothing of value to the main program. I will take
a guess at how it will be coded based on what you have sent me.
>global procedure Prekey()
>while Inkey()>-1
>wend
>end procedure
Would this be the accurate way to format this for use in the Inkey.e file?
Love & Friendship & Blessed Be!
Lynn Erika Kilroy
|
Not Categorized, Please Help
|
|