Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function Keys
Message
From
19/05/1998 05:39:20
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
19/05/1998 04:52:29
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00100263
Message ID:
00100266
Views:
19
>I would like to associate Function keys (F1...F9) with the Command buttons.
>How could I upon pressing one of the function key, then trigger the
>button's
>Click() command.
>
>I have tried to use ON KEY LABEL F9 ThisFormSet.MyForm.CmdButton.Click()
>but error return saying "ThisFormSet" can only be use in a method.
>Pls advise, thanks.
If you really must do this, then try the ACTIVEFORM object. i.e.

ON KEY LABEL F9 _SCREEN.ActiveForm.CmdButton.Click()
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Reply
Map
View

Click here to load this message in the networking platform