Re: Question, Please Help
- Posted by "Graeme." <hmi at HYPERMAX.NET.AU> May 27, 1999
- 392 views
At 05:53 27/05/99 GMT, you wrote: >>I see that the get_key() function allows for the program to get the next >>key >>pressed without waiting. How do I assign that key's identity (a numeric >>value I'm guessing) to a variable so that I can manipulate it? >> >>while get_key() = -1 do >>bla bla bla >>end while >> >>But how do I take whatever key was pressed and use it? >> >>-Phil > >You can answer your own question! You wrote: > > get_key() = -1 > >which means get_key() is a function. All you have to do is turn it around... > > variable = get_key() > > For a practical demonstration of this, try: ex ed c:\euphoria\bin\key.ex at the dos prompt. (assuming you have EU on drive C) ----------------------------------------------------