Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enforcing the WAIT command
Message
 
To
01/03/2002 13:32:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00627086
Message ID:
00627112
Views:
20
Hi,

Try some thing like this:
** MyWait.PRG
*  Waits for a specified number of seconds.
PARAMETERS nSeconds
declare Sleep in win32api integer

for I = 1 to 10
   =Sleep(nSeconds*1000)
endfor
You might want to add a 'set escape off' or some error capture too to prevent an error message appearing when the user presses the 'ESC' key.

HTH,
Arriyel
>Hello,
>
>The WAIT command when used like this,
>
> Wait "" timeout 10
>
>Works fine, but if the user clicks his mouse or hits a key during the
>wait period, it ends the wait period. period.
>
>What is the simplist way to prevent this from happening, so the user is
>forced to wait the 10 seconds? Lock the keyboard/mouse click somehow?
>
>THANKS YA'LL,
>J to-tha O to-tha E
Speak using soft and sweet words in case you have to eat them later.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform