| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Returns the key code of the key that has terminated READ.
Readkey() --> nKeyCode
The function returns a numeric value indicating the key that has terminated the READ command.
Termination keys
| Value | Termination key |
|---|---|
| 4 | Up arrow |
| 5 | Down arrow |
| 6 | Page Up |
| 7 | Page Down |
| 12 | Esc |
| 14 | Ctrl+W |
| 15 | Enter or edit buffer is full |
| 34 | Ctrl+Page Up |
| 35 | Ctrl+Page Down |
Note: the number 256 is added to the key code when Updated() returns .T. (true), i.e. when the user has changed any Get entry field.
| See also: | ReadExit(), LastKey(), NextKey() |
| Category: | Get system |
| Source: | rtl\readkey.prg |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
http://www.xHarbour.com