Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Here an easy one... the wait command
Message
From
22/08/2000 15:39:57
 
 
To
22/08/2000 15:14:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00407890
Message ID:
00407938
Views:
24
This will work, but you must take into account that it will take 100% of your CPU power during that time. The Sleep() API will relinquish CPU control to other running applications.
>There's probably (certainly??) a better way to do this in VFP, but this old 2.6 code should still work
>
>PRIVATE nSeconds
>nSeconds = SECONDS()
>DO WHILE SECONDS() < (nSeconds+30)
> ** nothing to do
>ENDDO
>
>This won't work if the 30 second time span goes past midnight - but you could code around that if necessary.
Previous
Reply
Map
View

Click here to load this message in the networking platform