Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do while and processor
Message
From
30/03/2005 17:17:20
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01000110
Message ID:
01000121
Views:
24
>>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.

I've got the idea, thanks.
Previous
Reply
Map
View

Click here to load this message in the networking platform