>Hi everybody,
>
>We have an application, called Querier, which executes different types of queries stored in a MetaFile. In some cases we use saved user's criteria. In order to retrieve these criteria we use another complicated application called BtCrit. This application has a form which supports RUN and Design actions. In RUN mode the form still has to be instantiated, but it's not visible to the user.
>
>Anyway, Querier has ability to stop query by pressing ESC. I just tried to press ESC too earlier (when BTCrit form was instantiated) and got VFP standard Interrupted message with Suspend Ignore Cancel buttons...
>
>What can I do to stop the form and clearly return to the calling procedure in the middle of Init by pressing ESC?
>
>Thanks a lot in advance.
How about SET ESCAPE OFF, and then regularly checking for INKEY() to allow the interruption?
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)