Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Category:
Object Oriented Programming
>>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.
Jim,
What's a good example of when ON KEY should be used to interrupt code?
Renoir
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only