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

keypress

Status
Not open for further replies.

myzani

Programmer
Jan 20, 2010
10
PH
hello guys, what is the nkeycode when you press enter key?


thanks...
 
Go to an ASCII Chart website and use that as a reference.
Something like:
The Enter Key used to be called the Return Key because it issues a Carriage Return.
And, like Mike says above, it is a Decimal 13.

The InKey value for other keys will be their ASCII Decimal value.

Good Luck,
JRB-Bldr
 
Not all values are listed in INKEY(). But it's really, really easy to get the key code.

Put ? INKEY(0) in the command window, press Enter, the the key you want. The key code will display on the VFP desktop.

Craig Berntson
MCSD, Visual FoxPro MVP,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top