Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Escape from Infinite loop
Message
From
08/01/2007 08:00:42
 
 
To
08/01/2007 05:14:15
Ali Ihsan Turkoolu
Galaksi Bilgisayar A.Þ.
Ankara, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01182858
Message ID:
01183392
Views:
14
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform