General information
Category:
Coding, syntax & commands
>>A form has a checkbox that says: "Stop processing".
>>
>>The form has timers that run code.
>>
>>The problem is that I can only get access to the checkbox (to check it) when there is a gap. That is when the code has stopped running and the next timer event has not yet started.
>>
>>I would like to be able to "Stop processing" at any time. Any thoughts on how this can be accomplished?
>
>A DOEVENTS at certain points in the timer code? It'll probably make it a tad slower, but should give the code a chance to process user input.
Thanks for the tip on using DOEVENTS.
I read up on this in Hackers and they have a tip on combining it with MDOWN(). I implemented this.
It works OK in a test form with a loop (for kk = 1 to 10000), where one can test for it at every iteration. However, where there is a lot of code being run in the loop, it doesn't work that well, as there is not enough time for the DOEVENTS to register the user's mouse click.
I guess I need to do it after every line of code.
What do you think of using ON KEY LABEL to stop processing?
Cyril
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only