Difference between revisions of "READKEY()"

From Recital Documentation Wiki
Jump to: navigation, search
(READKEY())
(Products)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to read last key pressed
 
Function to read last key pressed
 
  
 
==Syntax==
 
==Syntax==
Line 24: Line 23:
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 15:06, 7 December 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