Ok... Thanks for that link, but when I tried it, it didn't work for me... I'll put my test code here... and hope you can help...
DECLARE SUB Test(Key AS WORD)
CREATE Form AS QFORM
CAPTION = "Form1"
Width = 320
Height = 240
Center
CREATE Button1 AS QBUTTON
CAPTION = "Button1"
Left = 86
Top = 21
END CREATE
END CREATE
Form.OnKeyPress = Test
Form.SHOWMODAL
SUB Test(Key AS WORD)
Button1.CAPTION = Key
END SUB
|