Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Escape from Infinite loop
Message
De
08/01/2007 08:00:42
 
 
À
08/01/2007 05:14:15
Ali Ihsan Turkoolu
Galaksi Bilgisayar A.Þ.
Ankara, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01182858
Message ID:
01183392
Vues:
15
>Thank you very much Mike,
>I prefer the UI and UIless as an easiest and very usefull way.
>I call UIless.exe more than one according to job load.
>I learned also what "Doevents" command is.
>Ali Ihsan


It may be useful in the UILess program to use the Sleep() API call in your loop. Such as:
DECLARE Sleep IN Win32API INTEGER nMilliseconds

do while .t.
   if file("myservice.txt")
       *** Code to open DBF, look for records, and process
   else
       exit
   endif


   =Sleep(100)
enddo
This pauses the program for a tenth of a second every time around.

This should make the PC running these EXEs more responsive than if it were stuck in a tight loop.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform