Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Difference in invalid date handling?
Message
From
03/12/2003 15:38:07
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Difference in invalid date handling?
Miscellaneous
Thread ID:
00855600
Message ID:
00855600
Views:
52
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
Map
View

Click here to load this message in the networking platform