Difference between revisions of "ON ESCAPE"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=ON ESCAPE=
 
 
 
==Class==
 
Keyboard Events
 
 
 
 
==Purpose==
 
==Purpose==
 
Trap the interrupt key
 
Trap the interrupt key
Line 28: Line 21:
 
<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 39: Line 32:
  
 
==Products==
 
==Products==
Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Keyboard Events]]
 +
[[Category:Keyboard Events Commands]]

Latest revision as of 15:42, 12 November 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