Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reset LASTKEY()

Status
Not open for further replies.

engan

Programmer
Jul 15, 2001
53
ID
How do I reset the value return by lastkey() function ?
Here is sample code :
IF lastkey() = 24
here I will reset the value return by lastkey() so the next time lastkey() will not return 24.

ENDIF

Is There a function like SETLASTKEY() ?

Eng An
 
The only way I've found is to "stuff" the keyboard with another character that you don't expect the user to use. e.g.
Code:
KEYBOARD '{ALT+F1}' PLAIN
Rick
 
It is difficult to tell what exactly you are trying to achieve, but you can try this.

Code:
mLastkey = Lastkey()

IF mLastkey= 24
here I will reset the value return by lastkey() so the   next time lastkey() will not return 24.

ENDIF

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top