ON()

From Recital Documentation Wiki
Jump to: navigation, search

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, Recital Server