Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET CENTURY stuff
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00206098
Message ID:
00206671
Views:
29
>>>If you're using VFP6, maybe you could set the date fields .Century property to 0 in the .GotFocus method, and reset it to 1 in the .LostFocus method. That way it would show as 4 digit years when the control did not have the focus, but allow you to enter just the 2 digit years. Would that work for you?
>>
>
>I just tried it in VFP5, and it will work. See if that works for you.

I couldn't get it to work.

Global settings are

SET CENTURY OFF
SET CENTURY to 19 ROLLOVER 5

When I enter 02/03/03 and leave, it shows 2002/03/03 and when I tab to the field, it still shows the 4 digits.

Do you see different behaviour? If so, maybe I can get a sample form from you.

Thanks,
Joe
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform