>>Is there a way to programmatically clear or change the value in LASTKEY? I'm trying to do this using KEYBOARD, but I'm on a ReadOnly grid and every parameter I enter (KEYBOARD etc.) causes a beep and readonly message. CLEAR TYPEAHEAD clears the buffer , but not the LASTKEY value...any ideas?
>
>I guess you could create custom property nLastkey, set it in Form.KeyPress event (This.nLastkey=nKeycode) and use it and reset to 0 whenever you want.
Excellent idea. I just had to set KeyPreview = .T. and it works fine. Thanks Edward.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.