Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Want program to pause for 60 seconds, how?
Message
De
19/11/1998 15:34:46
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00159454
Message ID:
00159501
Vues:
17
>System administrator wants to kick the users off the system. Selects the appropriate menu item. Now I want to give him a message like "Please wait ... Forcing Users off the System" and make it stay up for 60 seconds. Tried "WAIT" with " Timeout 60", but it goes away if the keyboard or mouse is used.
>
>How to pause a program for XX seconds.

Aside from the obvious looping on the value of SECONDS():
nStartSecs = SECONDS()
DO WHILE SECONDS() < nStartSecs + 60
ENDDO
You could also call the Sleep() API call:

DECLARE Sleep IN WIN32API INTEGER dwMilliSecsToWait
=Sleep(60000)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform