>I have a command button based on a custome class to verify results. The button has a shrotcut of Alt-V. The code in the class is:
>Init event: On key label F4 Keyboard '{Alt+V}'
>Destroy Event: On keylabel F4
>
>If results in a grid are verfied by clicking the button or by alt+v the action is completed with no problems. If F4 is pressed then a message of Record is in use by anoher user is displayed.
>Any explanation!
>Thanks all
Instead of using ON KEY LABEL set Form's KeyPreview to .t. and put the code into Form's KeyPress method.
Do you have info from related table in your grid? If yes, it could be a bug in VFP. Which VFP version do you use?
If it's not broken, fix it until it is.
My Blog