Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid Event overridden by mouse click?
Message
 
To
02/09/1998 15:06:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00132491
Message ID:
00132498
Views:
13
>I have a txtbox in a grid with the valid set to fire a messagebox and return 0 when a data condition is not met. It works fine unless you click on a control outside of the grid. Then the event fires properly but the clicked on control still gets focus after the messagebox leaving bad data in the txtbox. What do I need to do to prevent this?
>
>TIA
>Terry

Terry,

Rethink your interface. The user wants to go somewhere else in the form, so let them. When they click teh Save button you can recheck the validity of everything and bark at them then. Leave your messagebox in teh valid though as it is helpful to the user in notifying them that something is wrong with that value.

If you did lock them into the textbox in the grid, how would they choose a reject button to cancel their edit work? What if the user wants to fill in another field before returning to the one that is currently not valid?
Previous
Reply
Map
View

Click here to load this message in the networking platform