ON ESCAPE

From Recital Documentation Wiki
Revision as of 16:20, 3 June 2009 by Yvonnemilne (Talk | contribs)

Jump to: navigation, search

Class

Keyboard Events


Purpose

Trap the interrupt key


Syntax

ON ESCAPE [<command>]


See Also

ON ERROR, ON KEY, SET DOESCAPE, SET ESCAPE


Description

The ON ESCAPE command causes the specified <command> to be executed if the interrupt key is pressed. If ON ESCAPE is specified without a <command>, then the interrupt key will not be trapped.

<command>

The <command> can be any Recital/4GL command.


Example

procedure interrupt
  on escape
  set message to "Processing canceled."
  close tables
  erase temp.tmp
return to master
 
on escape do interrupt


Products

Recital Terminal Developer