READKEY()*

Find out which key terminated a READ.

Syntax

READKEY() --> nKeyCode

Arguments

None.

Returns

READKEY() returns a numeric code representing the key that caused READ to terminate.

Description

READKEY() is used after a READ was terminated to determine the exit key pressed. If the GET buffer was updated during READ, 256 is added to the return code.

ExitReturn code
Key(not updated)(updated)
Up4260
Down5261
Page-Up622
Page-Down7263
Ctrl Page-Up34290
Ctrl Page-Down35291
Esc12268
Ctrl End14270
Enter15271
Key >= 3215271
otherwise0
READKEY() is a compatibility function so try not to use it. READKEY() is superseded by LASTKEY() which returns the INKEY() code for that key. UPDATED() could be used to find if the GET buffer was changed during the READ.

Status

Ready

Compliance

READKEY() is compliant with CA-Clipper 5.3

Files

Library is rtl

See Also