Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Difference in invalid date handling?
Message
De
03/12/2003 15:38:07
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Difference in invalid date handling?
Divers
Thread ID:
00855600
Message ID:
00855600
Vues:
51
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
Fil
Voir

Click here to load this message in the networking platform