Difference between revisions of "ON()"

From Recital Documentation Wiki
Jump to: navigation, search
(Class)
 
Line 1: Line 1:
 
 
 
==Purpose==
 
==Purpose==
 
Function to return the commands assigned to the ON commands
 
Function to return the commands assigned to the ON commands
Line 44: Line 42:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital, Recital Server
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 17:28, 3 December 2009

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