Dmitry,
You're putting it right in the middle of the loop? Without doing anything to exit the loop? The procedure will continue to run, because it has nothing to do with the event loop.
>I am trying to figure out why my application (.EXE) is ignoring Clear Events statement in one form. Basically I have a modal form that has a code in a button click() method: a loop of processing the some data. I put a line:
>
>
Clear Events
>
>in the middle of the procedure but the program at run time simply ignores it. Any other place Clear Events would make the program go to the first line after Read Events, as it supposed to.
>
>Any idea or suggestions?
>
>Thank you.
Steve Gibson