Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bypass Validation when a Cancel button is pressed.
Message
De
09/11/1999 08:45:34
 
 
À
09/11/1999 08:10:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00288499
Message ID:
00288962
Vues:
33
Yes, It does the same thing.
First time When my focus is on text box, I pressed cancel/Esc, Lastkey() value becomes 27.
But my problem is, Once the value of Lastkey() turns to 27, it will never execute the Valid event even if I click on the onother text box instead of pressing cencel or Esc. Because the very first check in Valid event is:

valid event
*first check
If Lastkey()=27
retu
endif
*second check
IF ISBLANK(THIS.VALUE)
messagebox('cannot leave blank')
endif


Thanks.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform