Difference between revisions of "ON ESCAPE"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
=ON ESCAPE=
 
 
 
 
==Class==
 
==Class==
 
Keyboard Events
 
Keyboard Events
Line 28: Line 25:
 
<code lang="recital">
 
<code lang="recital">
 
procedure interrupt
 
procedure interrupt
on escape
+
  on escape
set message to "Processing canceled."
+
  set message to "Processing canceled."
close tables
+
  close tables
erase temp.tmp
+
  erase temp.tmp
 
return to master
 
return to master
  
Line 42: Line 39:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Keyboard Events]]
 +
[[Category:Keyboard Events Commands]]

Revision as of 16:20, 3 June 2009

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