READKEY()
From Recital Documentation Wiki
Revision as of 15:56, 28 October 2009 by Helengeorge (Talk | contribs)
Purpose
Function to read last key pressed
Syntax
READKEY()
See Also
INKEY(), CTRL(), SET KEY, LASTKEY(), NEXTKEY(), UPDATED(), SET PCKEYS
Description
The READKEY() function returns a number representing the ASCII code for the last key pressed from within a form or an @...GET. If the contents of the GET or memory variable were modified by the READ, then 256 is added to the return value. The CLEAR TYPEAHEAD commands clears the READKEY() function to zero.
Example
if readkey()=ctrl('g') set message to "Operation canceled." endif
Products
Recital Mirage Server, Recital Terminal Developer