>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.