CTRL()

From Recital Documentation Wiki
Revision as of 14:54, 27 October 2009 by Helengeorge (Talk | contribs)

Jump to: navigation, search


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