Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid Method and Cancel Button
Message
De
20/07/1999 15:13:08
 
 
À
20/07/1999 12:38:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00243647
Message ID:
00243738
Vues:
27
>I placed some field validations in my valid event of a user entered text field. I give the user an cancel button just in case of those times when they say "hey I'm in the wrong place." But everytime they press teh cancel button, the valid event still takes place and it comes back with a message saying an entry in required! How can I prevent it from doing that but keep the code in my valid event?
>
>Jeff T.

Try setting the Cancel property of the button to .T. Then in the Valid of the textbox put:

IF LASTKEY() = 27 && Escape
RETURN
ENDIF

Cancel property of the button should set LASTKEY() TO 27 ( Escape )

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform