Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>Dan ---
>
>Move your validation rules into a separate business object (just a Custom object with custom properties, nothing fancy). Call the appropriate method on Valid *and*, as Ed suggests, in your Save code. Make sure that you use a SetFocus to move the cursor back to the offending control also for consistency.
>
>
I like this idea.
Should I have a business object for each control? Maybe have a flag, used when the form is originally instantiated, that determines if a business object should be created for each control? How will this affect the performance of the app?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement