General information
Category:
Forms & Form designer
>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?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only