Difference between revisions of "ON ESCAPE"

From Recital Documentation Wiki
Jump to: navigation, search
(Class)
Line 1: Line 1:
==Class==
 
Keyboard Events
 
  
  

Revision as of 14:46, 23 October 2009


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