Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using On Key in a Form
Message
 
 
À
21/05/2001 15:33:30
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00509644
Message ID:
00509652
Vues:
17
>I use On Key F1 to call a help form. While the user is on the help form I would like to have F1 then run code in a method. I'm getting an error that I must use ThisForm only in a method. I understand that I'm trapping the F1 key at the sytem level and it doesn't understand that there is a form active, but how can I work around this? I can easily put a button on the help form that runs the code I need, but it would be cleaner if the user could just use the F1 key for this secondary help. Thanks!
>
>Regards, Renoir

In OKL you should use _screen.activeform construction. But it would be much better to use KeyPress event of the form.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform