RE: Escape from Infinite loop

2007-01-08 Thread Ali İhsan Türkoğlu
Mr. Mike show very good ways: There are plenty of ways you can do this. The simplest would be to create a form property, lStop, which is set to .T. in the stop button's Click() Then, in your loop, you will need to call DoEvents() once in a while. This will let the UI events happen, so your

RE: Escape from Infinite loop

2007-01-08 Thread Bill Arnold
The loop can do something like this: do while .t. if file(myservice.txt) *** Code to open DBF, look for records, and process else exit endif enddo So if myservice.txt exists, the loop keeps running. If it gets deleted, the loop stops. One benefit of this

RE: Escape from Infinite loop

2007-01-08 Thread Ali İhsan Türkoğlu
To: [EMAIL PROTECTED] Subject: RE: Escape from Infinite loop The loop can do something like this: do while .t. if file(myservice.txt) *** Code to open DBF, look for records, and process else exit endif enddo So if myservice.txt exists, the loop keeps running

Re: Escape from Infinite loop

2007-01-05 Thread MB Software Solutions
Ali İhsan Türkoğlu wrote: I should write a VFP program that work on server. Continuously, This program will look a vfp table, if new records added, make some jobs. User should start and stop this program. Question is: How can I escape from an endless loop, when user clicks the stop buton on

RE: Escape from Infinite loop

2007-01-05 Thread john harvey
Form with a timer. John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ali Ihsan Türkoglu Sent: Friday, January 05, 2007 10:13 AM To: profox@leafe.com Subject: Escape from Infinite loop I should write a VFP program that work on server. Continuously,

RE: Escape from Infinite loop

2007-01-05 Thread john harvey
Of course, you could also write a problem that launches from the Windows scheduler too. John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ali Ihsan Türkoglu Sent: Friday, January 05, 2007 10:13 AM To: profox@leafe.com Subject: Escape from Infinite

RE: Escape from Infinite loop

2007-01-05 Thread David Crooks
On Friday, January 05, 2007 1:14 PM john harvey wrote: Of course, you could also write a problem that launches from the Windows scheduler too. I have done that! Except I wrote an exe that was launched from Windows scheduler instead of a problem. I usually like to write solutions and not

RE: Escape from Infinite loop

2007-01-05 Thread john harvey
Sorry, fat fingered that one.haha John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Crooks Sent: Friday, January 05, 2007 1:34 PM To: ProFox Email List Subject: RE: Escape from Infinite loop On Friday, January 05, 2007 1:14 PM john harvey wrote