Difference between revisions of "READKEY()"

From Recital Documentation Wiki
Jump to: navigation, search
 
(READKEY())
Line 1: Line 1:
=READKEY()=
 
 
 
==Class==
 
Screen Forms
 
 
 
 
==Purpose==
 
==Purpose==
 
Function to read last key pressed
 
Function to read last key pressed

Revision as of 15:55, 28 October 2009

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