Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid Method and Cancel Button
Message
From
20/07/1999 14:54:43
 
 
To
20/07/1999 12:38:23
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00243647
Message ID:
00243715
Views:
28
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
Previous
Reply
Map
View

Click here to load this message in the networking platform