>Hi everybody,
>
>I already built a form with all the controls using the regular VPM textbox_ class.
>
>Now, on the form I have several from / to dates controls.
>
>I'm thinking what would be the best way to add a validation logic for from/to? Does the idea of putting the logic into Ok button for the form sounds OK, e.g. don't catch the wrong dates before the final exit?
>
>This would be the easiest thing to apply then.
>
>Any other ideas?
>
>Thanks.
Hi Nadya,
I find it convenient to postpone any validation until the user tries to save the data. This is way easier to program, you get around clumsy situations with validations involving more than one field (which seems to be the case here), and, the user has the flexibility to enter data in any order.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)