Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #6210
| From | Martin <spam@spam.spam> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Would can you do if this happened? |
| References | <ff6eu.355146$h62.334170@fx14.fr7> <6ssh799pkl9v001eu1r3l1vsdelsbekjpi@4ax.com> |
| Message-ID | <U27eu.330378$7c4.4665@fx24.fr7> (permalink) |
| Date | 2013-11-05 14:14 +0000 |
Yes that is a technique I have used before but what do I use as a calling slowdown to enable the fred to work? Works well for manual clicked on things. ApplicationExec in the loop? Would that do? Thanks Martin On 05/11/2013 13:36, D.J.W. van Kooten wrote: > On Tue, 05 Nov 2013 13:19:13 +0000, Martin <spam@spam.spam> wrote: > > Hello Martin, > >> METHOD Fred1 gets called it takes 2 seconds to run, in the mean time >> Fred1 gets called while it is still running, so things get messy. >> >> The routine calling Fred1 is in a loop, what would stop the loop but >> allow Fred1 to complete? >> >> As above it is a hypothetical question, but I know it can be triggered >> if you put event handing in the wrong place. >> > Something like this? > > CLASS MyMethods > protect lBusy as logic > > method Fred1 class MyMethods > if !self:lBusy > self:lBusy:=true > // do something > self:lBusy:=false // reset busy status > endif > > This way you can call Fred1 a 2nd time without running it when the > previous call hasn't reset lBusy. You can add a for..next with retries > and 2 seconds waiting to allow it to run after some delay. > > Dick >
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Would can you do if this happened? Martin <spam@spam.spam> - 2013-11-05 13:19 +0000
Re: Would can you do if this happened? D.J.W. van Kooten <public@ic2remove.this.com> - 2013-11-05 14:36 +0100
Re: Would can you do if this happened? Martin <spam@spam.spam> - 2013-11-05 14:14 +0000
Re: Would can you do if this happened? "Wolfgang Riedmann" <wriedmann@gmail.com> - 2013-11-05 15:21 +0100
Re: Would can you do if this happened? dlzc <dlzc1@cox.net> - 2013-11-05 06:16 -0800
csiph-web