Information générale
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement