Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ON KEY LABEL
Message
De
21/11/2001 07:15:04
 
 
À
21/11/2001 03:48:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00584338
Message ID:
00584390
Vues:
34
>> How to use On key label eg. F1 to run a method in form? <<

OKL's in a production environment are a bad idea because they interrupt whatever is happening at the moment.

A better idea would be to set the form's KeyPreview property to true and put code like this in the form's KeyPress:
IF nKeyCode = -2  && F3
  This.MyMethod()
ENDIF
Using F1 is a bad idea because F1 is used to bring up help.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform