Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Escape from Infinite loop
Message
From
05/01/2007 11:52:31
 
 
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:
01182860
Views:
21
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform