CTRL()
From Recital Documentation Wiki
Revision as of 17:01, 23 March 2009 by Yvonnemilne (Talk | contribs)
Class
Expressions and Type Conversion
Purpose
Function to return the numeric value of a control character
Syntax
CTRL(<expC>)
See Also
@...GET, @...MENU, INKEY(), LASTKEY(), NEXTKEY(), READKEY(), SET KEY
Description
The CTRL() function returns the numeric value of the specified control character. This function is extremely useful, when used in conjunction with the LASTKEY(), NEXTKEY() or READKEY() functions, for creating terminal independent programs.
Example
if readkey()=ctrl('g') set message to "Operation canceled." endif
Products
Recital Database Server, Recital Mirage Server, Recital Terminal Developer