ON()

From Recital Documentation Wiki
Revision as of 10:41, 23 March 2009 by Yvonnemilne (Talk | contribs)

Jump to: navigation, search

Class

Environment


Purpose

Function to return the commands assigned to the ON commands


Syntax

ON(<expC1> [,<expC2>])


See Also

INKEY(), LASTKEY(), ON ERROR, ON KEY, ON PAGE, READKEY()


Description

The ON() function will return the name of a command assigned to an ON command. The particular ON command is specified with <expC1>.


ON Command <expC1>
ON ERROR ERROR
ON ESCAPE ESCAPE
ON KEY KEY
ON KEY LABEL KEY
ON PAGE PAGE


The optional <expC2> is used to return the command assigned to the specific key or key-combination in ON KEY LABEL.


Example

? on("KEY", "F7")
do mail


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer