Difference between revisions of "CTRL()"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
==Class==
 
Expressions and Type Conversion
 
 
 
 
==Purpose==
 
==Purpose==
 
Function to return the numeric value of a control character
 
Function to return the numeric value of a control character
Line 28: Line 24:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 16:37, 27 November 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 Server, Recital