Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pause
Message
 
À
07/10/2008 16:27:56
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Pause
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01353441
Message ID:
01353446
Vues:
29
>How do I pause for x number of seconds in a PRG? Wait, or variations, wait for input or want to display something. I just want to pause. I know I could run a bogus loop for a period of time, but that seems like overkill.
DECLARE INTEGER Sleep IN WIN32API INTEGER
Sleep(NumberOfSeconds*1000)
Be careful though. All API functions are case-sensitive so you must declare them as they are written:
These declarations will raise errors;
DECLARE INTEGER SLEEP IN WIN32API INTEGER
DECLARE INTEGER sleep IN WIN32API INTEGER
DECLARE INTEGER SleeP IN WIN32API INTEGER
....
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform