Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pause
Message
From
07/10/2008 16:37:14
 
 
To
07/10/2008 16:27:56
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Pause
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01353441
Message ID:
01353446
Views:
30
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform