Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Year 0000
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01003937
Message ID:
01009845
Views:
16
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform