I. EQUEL/FORMS Examples : Sleep
 
Share this page                  
Sleep
Suspends execution of the application for a specified number of seconds.
Examples—sleep statement:
Example 1:
The following example displays a message for three seconds:
## message "please enter an employee number"
## sleep 3
Example 2:
In the following example, if an expert mode flag is set, messages are displayed for a shorter period of time:
if (expert_mode) then
     msg_interval = 1
else
     msg_interval = 3
end if
## message "entering information form"
## sleep msg_interval