Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Year 0000
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01003937
Message ID:
01009845
Vues:
20
>Hi everybody,
>
>If a user types 0000 as a year in date fields, it converts automatically to 1900. Is it VFP native behavior? The user thinks, that it should display an invalid date message instead. What do you think? How can we make it generic?
>
>Thanks in advance.

Nadya,

I know you've already gotten your answer, but the best way to do this is something like this in the Valid clause
RETURN (YEAR(This.Value) >= 2000)
You'll have to modify the year.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform