Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid Event
Message
De
15/01/2003 06:30:21
 
 
À
15/01/2003 00:37:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00741764
Message ID:
00741817
Vues:
22
I want that when user press cancel button this valid event shouldn't fire.

The easiest thing to do is to set the Cancel property of the cancel button to true. This means that pressing escape key and clicking the button are functionally equivalent. Then in your valid, you can put code like this:
IF LASTKEY() = 27
  *** Cancel button was clicked
  *** skip the validation
  *** and clear the escape key
  KEYBOARD '{MOUSE}'
ELSE
  *** Your validation goes here
ENDIF
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform