Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Escape from Infinite loop
Message
 
To
05/01/2007 11:48:29
Ali Ihsan Turkoolu
Galaksi Bilgisayar A.Þ.
Ankara, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01182858
Message ID:
01182871
Views:
9
>I should write a VFP program that work on server. Continuously, This program will look a vfp table, if new records added, make some time consuming tasks.
>
>User should start and stop this program for maintenance purpose.
>
>Question is: How can I escape from an endless loop, when user clicks the stop buton on my vfp form?
>
>
>
>Is this type program consume much CPU time due to endless do while loop?
>
>
>
>Thanks for all help.
>
>
>
>Ali Ihsan

DON'T do this job in a loop. Add a timer set its interval and in timer event check for new records and do the job. When user click on button just Disable timer.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform