DataBasic Reference > Statements and Intrinsic Functions > R > RQM Statement

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.0 ()

RQM Statement (DataBasic) (m618703+rqm_s.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

RQM Statement

Terminates the program's current timeslice, and causes the program to sleep for, or until, a specified time.

Syntax

[RQM || SLEEP] {wakeVal}

Syntax Elements

wakeVal An expression that evaluates to either:

If wakeVal is omitted, the program sleeps for one second.

If wakeVal is zero, the program sleeps for approximately 10 milliseconds.

Examples

* PROGRAM SEGMENT TO SOUND TERMINAL BELL
* FIVE TIMES
*
EQU BELL TO CHAR(7)
FOR I=1 TO 5
   PRINT BELL:
   RQM 2
NEXT I
END

Sounds terminal bell five times, pausing 2 seconds so that the bell is heard as five discrete beeps.

RQM 0.5

Causes program to sleep for 0.5 seconds.

X = "13:22:56"
SLEEP X

Program sleeps until 13:22:56 PM.

RQM 3.6

Causes program to sleep for 4 seconds.

RealityV15.0Comment on this topic