Difference between revisions of "SLEEP"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SLEEP=
 
 
 
==Class==
 
Applications
 
 
 
 
==Purpose==
 
==Purpose==
 
Pause program execution for a specified number of seconds
 
Pause program execution for a specified number of seconds
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
[[DIALOG BOX]], [[ON KEY]], [[SET MESSAGE]], [[INKEY()]]
+
[[DIALOG BOX]], [[INKEY()]], [[ON KEY]], [[SET MESSAGE]]
  
  
Line 26: Line 19:
 
use patrons index events, dates, names
 
use patrons index events, dates, names
 
seek "CONCERTO"
 
seek "CONCERTO"
if .not. found()
+
if not found()
set message to "Event not found."
+
    set message to "Event not found."
 
sleep 2
 
sleep 2
 
set message to
 
set message to
Line 35: Line 28:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Applications]]
 +
[[Category:Applications Commands]]

Latest revision as of 16:08, 25 November 2009

Purpose

Pause program execution for a specified number of seconds


Syntax

SLEEP <expN>


See Also

DIALOG BOX, INKEY(), ON KEY, SET MESSAGE


Description

The SLEEP command pauses execution of a program for the specified number of seconds.


Example

use patrons index events, dates, names
seek "CONCERTO"
if not found()
    set message to "Event not found."
sleep 2
set message to
endif


Products

Recital Server, Recital