General information
Title:
Difference in invalid date handling?
I've noticed a difference in how VFP 6 and 8 handle bad dates. Assume you have a text box bound to a date type field, and you type an invalid date, then leave the text box.
In VFP6: The bad date is written to the table, but does not display in the text box once the text box loses focus.
In VFP8: VFP immediately throws a "Date/datetime evaluated to an invalid value" Note that this error does not occur if the text box is unbound.
Has anyone else seen this? Any setting to make VFP 8 behave like 6, short of an on error routine to trap the bad date and display a message?
Thanks,
Chris
PS: NOTIFY is off, StrictDateEntry = 1
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