Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid Method and Cancel Button
Message
 
À
20/07/1999 14:58:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00243647
Message ID:
00243777
Vues:
21
John and Others,

Here's an easier way to do this.

1) Set the Cancel property of the Cancel button to .T.
2) At the beginning of every Valid event put this code;
IF LASTKEY() = 27
   RETURN .T.
ENDIF
The cancel property makes clicking the cancel button the same as pressing Escape. This has the added feature of making pressing Escape the same as clikcing the cancle button (that is the cancel button's click evnet will fire when pressing esacpe).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform