Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Want program to pause for 60 seconds, how?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00159454
Message ID:
00159512
Views:
18
>One note: I think you should be aware that if you choose to use the Sleep function in the API, you will run the risk that the user will type something into the keyboard buffer that will do something they didn't want.
>
>If you use the loop, issue a CLEAR TYPEAHEAD inside the loop, and you will not have this problem. You can even get fancy if they type something; check the keyboard buffer and if they are trying to type, use a WAIT NOWAIT command to say "I'm not dead, just wait and I'll let you do that." or whatever.
>

I like that idea. Or, put inside the loop WAIT WINDOW "SysAdmin said to wait " +ALLTR(STR( INT(nSeconds -SECONDS() ))) + " more..."
:)

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform