Neil Toulouse
Programmer
Hi!
I have a date field whose CONTROLSOURCE is mapped to a form property, which is initialised as an empty date {}.
If an invalid date is entered ( eg 25/25/06 ) it simply stops the focus being shifted until corrected.
However, an out of range date ( eg 10/10/1066 ) throws a FoxPro error "Date/datetime evaluated to an invalid value".
How do I trap this error as the VALID event is not fired (from what I can tell)?
Many thanks
Neil
I like work. It fascinates me. I can sit and look at it for hours...
I have a date field whose CONTROLSOURCE is mapped to a form property, which is initialised as an empty date {}.
If an invalid date is entered ( eg 25/25/06 ) it simply stops the focus being shifted until corrected.
However, an out of range date ( eg 10/10/1066 ) throws a FoxPro error "Date/datetime evaluated to an invalid value".
How do I trap this error as the VALID event is not fired (from what I can tell)?
Many thanks
Neil
I like work. It fascinates me. I can sit and look at it for hours...