Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function Keys
Message
De
19/05/1998 05:39:20
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
19/05/1998 04:52:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00100263
Message ID:
00100266
Vues:
18
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform