Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do while and processor
Message
De
30/03/2005 17:06:46
 
 
À
30/03/2005 16:51:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01000110
Message ID:
01000119
Vues:
16
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform