Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #6359
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Intedrupting a looping process |
| Date | 2013-12-08 17:36 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <l8275c$p4$1@dont-email.me> (permalink) |
| References | <c1a36b59-16d7-4e59-b30f-9479f0e718bf@googlegroups.com> |
Do not know what your queatsion is but in this case I would say
Do while (! EOF) .and. (! self:lInterupt)
... process records
... short circuit those not meeting criteria
... archive found records in supporting databases
... delete affected records
... flag affected records
IF SELF:lInterrupt
IF ! Confirm(SELF, "User Interrupted Process!", "You should ...")
SELF:lInterrupt := FALSE
ENDIF
ENDIF
... skip to next record
enddo
John
SteveMcNaughton schreef op 8-12-2013 17:25:
> 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