ON ESCAPE

From Recital Documentation Wiki
Revision as of 15:42, 12 November 2009 by Helengeorge (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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