Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stop form
Message
 
 
To
27/06/2002 11:18:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00672891
Message ID:
00672907
Views:
20
>>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.

You mean something like timer? Daniel Gramunt sent me his new class, which allows to Cancel form. However, in my particular case the form is extremely complicated with a very deep hierarchy.

I think, may be in this particular case I disable escape and then re-enable in Destroy. Though it contradicts with my principle of giving the user most flexibility...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform