Difference between revisions of "SET DOESCAPE"

From Recital Documentation Wiki
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SET DOESCAPE=
 
 
 
==Class==
 
Keyboard Events
 
 
 
 
==Purpose==
 
==Purpose==
 
Determine what happens when the interrupt key is pressed
 
Determine what happens when the interrupt key is pressed
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
[[ON ESCAPE]], [[ON KEY]], [[SET ESCAPE]], [[INKEY()]]  
+
[[INKEY()]], [[ON ESCAPE]], [[ON KEY]], [[SET ESCAPE]]  
  
  
Line 23: Line 16:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
 
//program longsort
 
//program longsort
 
set doescape on
 
set doescape on
Line 31: Line 24:
  
 
use patrons
 
use patrons
do longsort</pre>
+
do longsort</code>
  
  
 
==Products==
 
==Products==
Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Set_Commands|DOESCAPE]]
 
[[Category:Set_Commands|DOESCAPE]]
 +
[[Category:Keyboard Events]]
 +
[[Category:Keyboard Events Set Commands]]

Latest revision as of 15:39, 23 November 2009

Purpose

Determine what happens when the interrupt key is pressed


Syntax

SET DOESCAPE ON | OFF | (<expL>)


See Also

INKEY(), ON ESCAPE, ON KEY, SET ESCAPE


Description

If SET DOESCAPE is ON, and ESCAPE is ON, and a command is executing in a program file, when the interrupt key is pressed, the command is canceled and execution of the program continues with the next command. The DOESCAPE command differs from the ESCAPE command in that interruption of a program only cancels the current command being executed. If ESCAPE is OFF, SET DOESCAPE has no effect. By default, DOESCAPE is OFF.


Example

//program longsort
set doescape on
set escape on
sort on name /a, event /d, date /a
return
 
use patrons
do longsort


Products

Recital