Hi Agnes,
Try use ON ESCAPE RETURN TO ProcedureName
MartinaJ
>Hi,
>
>following problem occurs to me:
>I have a method that controls the data generation for reports. This could be complex calculation. If the user selects the wrong range it could run for a while.
>The control is generic, controled by a table. The calculation methods are well tested and established, and there is a large number of it. The callstack of the calculation could be variable, the position of the generic control too.
>
>Now the user likes to stop the generation.
>
>Is there a chance to use ESC key and/or some button to stop the generation without changing the calculation methods?
>
>TIA
>
>Agnes