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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"ENTER" key -dBase III Plus-

Status
Not open for further replies.

Rosciano

Technical User
Jun 16, 2003
64
IT
Hi everybody,

how to detect in a code if the "ENTER" key -chr(27)- was pressed? (dBase III Plus)

Thanks for the help.
[smile]
 
You can make an internet search for DBASE LASTKEY or DBASE INKEY and you will find tables listing the values returned for a keypress or a keypress with an ALT, CTRL or SHIFT keys. So tables will have 4 columns of values. INKEY() and LASTKEY() are functions that can read or recall which key was pressed.

Code:
? LASTKEY() && Enter=13, Esc=27
Code:
IF LASTKEY() = 13
   * code
ENDIF
 
Thank you dbMark, I didn' think to look in Internet. [sad]
Sorry to write chr(27) instead of 13, my memory fails sometimes.

Antonio
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top