>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
You better use keyboard to stop, e.g.
DO WHILE .t.
WAIT 'Press Alt+S To Stop' WINDOW nowait
IF INKEY()=31
exit
endif
ENDDO
WAIT clear
Edward Pikman
Independent Consultant