Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid Event overridden by mouse click?
Message
 
À
02/09/1998 15:06:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00132491
Message ID:
00132498
Vues:
12
>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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform