WAIT
Syntax
![]()
Command
Mandatory parameter Optional parameter Mandatory keyword Optional keyword |
WAIT (<Suspend> [, <WaitData>])
Description
Suspends the execution of the form or report for the specified number of seconds.
Diagram
Returned value type
None
Parameters
Parameter | Description |
Suspend | Number of seconds to suspend execution. |
WakeupData | Optional: The name of an alphanumeric variable to receive the wakeup data instead of the report parameter. |
Remarks
Wait commands can be ended before the specified wait time has expired by sending a WakeUp signal. This signal can be sent from another report or form using the WAKEUP command, from a script using the ComScript Job interface or from the Control Center (see Running Jobs).
By specifying a WakeupData variable, the data send along with the WakeUp signal will be stored in that variable instead of the report parameter which is the default storage location. The variable must be an alphanumeric value type, e.g. alpha or string.
Example
commit
wait (60) // Suspends execution for 60 seconds
wait (360, wakeupstr)
wait (60) // Suspends execution for 60 seconds
wait (360, wakeupstr)