Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #6365
| From | "Jamal" <someone@example.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Intedrupting a looping process |
| Date | 2013-12-09 16:24 -0500 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <l85cd4$d1o$1@speranza.aioe.org> (permalink) |
| References | <c1a36b59-16d7-4e59-b30f-9479f0e718bf@googlegroups.com> |
Suggestion: assuming you subclassed your app class object, add an EXPORT
variable, for example EXPORT lStopLongProcess.
Now in your program menu, create a menu option, that opens a dialog window
with a button set has the following:
GetAppObject():lStopLongProcess := TRUE
then in the DO WHILE, check for GetAppObject():lStopLongProcess = TRUE, and
act upon it.
After exit, reset to false.
This acts like a a GLOBAL variable.
HTH,
Jamal
"SteveMcNaughton" wrote in message
news:c1a36b59-16d7-4e59-b30f-9479f0e718bf@googlegroups.com...
I want to interrupt a DO loop processing records without having a progress
window if possible. It is an archiving process that literally take days to
run for some of my old time clients.
I'd like to inject a change of status for a logic variable from a push
button if possible. I don't want the progress window as I think it will
slow down an already long process.
I'm having a bad case of programmer's blank stare. Any Ideas?
Loop logic...
Do while ! EOF
... process records
... short circuit those not meeting criteria
... archive found records in supporting databases
... delete affected records
... flag affected records
... CHECK FOR USER INTERRUPTION
... skip to next record
enddo
Here's the code at the end of the loop. just need to set the trigger.
IF SELF:lInterrupt
IF Confirm(SELF, "User Interrupted Process!", "You should pack the
database after the interruption to avoid processing the same records
again." + crlf+crlf;
+"Are you sure that you want to end the process at this point?")
EXIT
ENDIF
ENDIF
oServer:Skip()
ENDDO
Thanks. Steve.
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Intedrupting a looping process SteveMcNaughton <stevemcnaughton@auditron.com> - 2013-12-08 08:25 -0800
Re: Intedrupting a looping process JohnMartens <martens@tennishulp.info> - 2013-12-08 17:36 +0100
Re: Intedrupting a looping process SteveMcNaughton <stevemcnaughton@auditron.com> - 2013-12-08 20:58 -0800
Re: Intedrupting a looping process D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2013-12-09 06:51 +0100
Re: Intedrupting a looping process Mathias <mathias.hakansson@consultec.se> - 2013-12-09 00:09 -0800
Re: Intedrupting a looping process "Willie Moore" <williem@wmconsulting.com> - 2013-12-09 08:24 -0600
Re: Intedrupting a looping process "Jamal" <someone@example.com> - 2013-12-09 16:24 -0500
Re: Intedrupting a looping process SteveMcNaughton <stevemcnaughton@auditron.com> - 2013-12-09 20:39 -0800
Re: Intedrupting a looping process "Paul D B" <pdb@NOMORESPAMhnt.be> - 2013-12-10 16:25 +0100
Re: Intedrupting a looping process JohnMartens <martens@tennishulp.info> - 2013-12-10 17:51 +0100
Re: Intedrupting a looping process "Jamal" <someone@example.com> - 2013-12-10 12:28 -0500
Re: Intedrupting a looping process dlzc <dlzc1@cox.net> - 2013-12-10 11:24 -0800
Re: Intedrupting a looping process SteveMcNaughton <stevemcnaughton@auditron.com> - 2013-12-11 14:52 -0800
csiph-web