Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Putting VFP to
Message
From
08/08/2001 18:28:28
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
 
To
08/08/2001 17:10:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00541567
Message ID:
00541600
Views:
14
>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])
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform