Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do while and processor
Message
From
30/03/2005 17:06:46
 
 
To
30/03/2005 16:51:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01000110
Message ID:
01000119
Views:
17
>Is it possible doing do while not to consume 100% of the processor?

You can do one of several things to induce a "wait state".

1) DECLARE Sleep IN WIN32API INTEGER nMilliSeconds

Put Sleep(xx) inside the DO WHILE.

2) INKEY(xx) inside the DO WHILE.

3) DOEVENTS inside the DO WHILE.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform