Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'on key' events seem to have priority over valid method.
Message
 
To
16/11/2001 11:53:07
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00582463
Message ID:
00582904
Views:
23
>This is eactly what I would expect to happen. If a program is executing when you press the key or click the mouse button, Visual FoxPro executes the current program line and then executes the ON KEY LABEL command.
>
>You will be much better off setting the form's KeyPreview property to true and using method code called from the form's KeyPress event to handle this.

Hi Marcia,

I wanted to reply to your message because it is the best solution in this discussion. ON KEY ia an intercommand interrupt and it should ONLY be used when you want to interrupt code. Otherwise you are in for lots of strange things happening.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform