Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid Method and Cancel Button
Message
De
20/07/1999 14:54:43
 
 
À
20/07/1999 12:38:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00243647
Message ID:
00243715
Vues:
33
Hi Jeff ---

I posted a KB article here about this very problem. My solution involves trapping where the mouse click took place on the form and trapping the coordinates using MROW() and MCOL(). If they fell within the domain of the Cancel button, Valid returns .T. ... Ain't no way to avoid firing that Valid...look for my article for more info and code.


>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.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform