WAITUNTIL

Top  Previous  Next

Syntax

WAITUNTIL condition

Description

Creates the main message loop of a Windows program, continually processes messages for all of the windows, dialogs and controls in your program until the condition is true. When a message arrives for one of your windows the procedure subroutine specified in the OPENWINDOW or CREATEDIALOG statements is called.

Parameters

condition - Any conditional statement that evaluates to TRUE (1) or FALSE (0)

Return value

None

Remarks

WAITUNTIL is functionally equivalent to:

DO

WAIT

UNTIL condition

See Also: OPENWINDOW, CREATEDIALOG, WAIT

Example usage

...
exit = FALSE
WAITUNTIL exit = TRUE