Function WaitPeriod() Foundation

Allows time controlled loops.

Syntax
WaitPeriod( [<nWaitPeriod>] ;
          ) --> lPeriodNotPassed
Return

Returns .T. as long as the period of <nWaitPeriod> * 1/100 seconds has not passed since the initial call to the function.

Description

The function allows a loop to run a specified period of time.

With the initial call the wait period must be specified in 1/100 seconds. After initialization of the internal timer the function must be called without an argument and can be used in a conditional expression:

WaitPeriod(100) 
DO WHILE WaitPeriod() 
   // code to run for 1 second 
ENDDO 

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.