Difference between revisions of "CTRL()"

From Recital Documentation Wiki
Jump to: navigation, search
 
(Class)
Line 1: Line 1:
==Class==
 
Expressions and Type Conversion
 
  
  

Revision as of 14:54, 27 October 2009


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