Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Firing a method from an OKL?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00127489
Message ID:
00127513
Vues:
28
Mark,

OKL's aren't really necessary with the Form.KeyPress() method. If you have to use an OKL you can use _screen.ActiveForm as the form reference, but this can cause problems if the form can lose focus.

>Is there a way to execute a method of a control from an OKL, where the OKL is defined in the init of the form which contains the control? I want to run the Click() method of a button (which has no text prompt, just a graphic) by pressing a key sequence, like Ctrl-F. I have the following in the form's Init...
>
>ON KEY LABEL CTRL+F ThisForm.cmdFind.Click()
>
>... but I get the error "THISFORM can only be used within a method".
>
>Is there a way to do this???
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform