xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

ReadKey()

Returns the key code of the key that has terminated READ.

Syntax

Readkey() --> nKeyCode

Return

The function returns a numeric value indicating the key that has terminated the READ command.

Termination keys
ValueTermination key
4Up arrow
5Down arrow
6Page Up
7Page Down
12Esc
14Ctrl+W
15Enter or edit buffer is full
34Ctrl+Page Up
35Ctrl+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.

Info

See also:ReadExit(), LastKey(), NextKey()
Category: Get system
Source:rtl\readkey.prg
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe