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
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
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
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
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,
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
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
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
8 matches
Mail list logo