Difference between revisions of "SET TIMEOUT"

From Recital Documentation Wiki
Jump to: navigation, search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SET TIMEOUT=
 
 
 
==Class==
 
Screen Environment
 
 
 
 
==Purpose==
 
==Purpose==
 
Set the timeout delay
 
Set the timeout delay
Line 23: Line 16:
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
 
procedure p_timeout
 
procedure p_timeout
dialog box "Timeout Occurred."
+
  dialog box "Timeout Occurred."
set timeout off
+
  set timeout off
quit
+
  quit
 
return
 
return
  
Line 37: Line 30:
 
@00,00 say "Enter Value: " get m_var
 
@00,00 say "Enter Value: " get m_var
 
read
 
read
return</pre>
+
return
 +
</code>
  
  
 
==Products==
 
==Products==
Recital Terminal Developer
+
Recital
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Set_Commands|TIMEOUT]]
 
[[Category:Set_Commands|TIMEOUT]]
 +
[[Category:Keyboard Events]]
 +
[[Category:Keyboard Events Set Commands]]

Latest revision as of 10:36, 17 November 2009

Purpose

Set the timeout delay


Syntax

SET TIMEOUT [TO <expN> | <ON | OFF>]


See Also

ON TIMEOUT, SET CLOCK, SET CLOCKDISPLAY, SET CLOCKRATE


Description

The SET TIMEOUT command sets the number of seconds (<expN>) before the event assigned by the ON TIMEOUT command is executed. SET TIMEOUT ON activates the timer, SET TIMEOUT OFF deactivates the timer. SET CLOCK must be ON.


Example

procedure p_timeout
  dialog box "Timeout Occurred."
  set timeout off
  quit
return
 
set clock on
on timeout do p_timeout
set timeout to 4
set timeout on
m_var = space(10)
@00,00 say "Enter Value: " get m_var
read
return


Products

Recital