>I know I've seen this before, but I can't remember the answer.
>
>How does one put a VFP application to sleep for some number of seconds? In 2.6 I would write a loop which did nothing
>
>
>PROCEDURE sleep
>PARAMETERS nWait
>PRIVATE ALL
>nSeconds = SECONDS()
>nEnd = nSeconds + nWait
>DO WHILE SECONDS() < nEnd
> ** Do Nothing
>ENDDO
>
>
>I'm pretty sure I've seen a reference to an API call which does the same thing. Could someone please post an example for me???
>
If you want to be able to wake up on demand:
= INKEY([nSeconds])