Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Y2K Slap in the Face
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00199762
Message ID:
00199863
Views:
16
>This is not a problem, it's just a matter of different defaults for the SET CENTURY TO setting. If you SET CENTURY TO 20, VFP will put that in front of 2 digit dates.

Not usually, though I'd still call it a bug :) However, I am faced with having a Y2K compliance auditor watching over my shoulder as I demonstrate vfp5 compliance. Therefore, to avoid potential problems I had to cheat a little and put:

SET CENT TO VAL(LEFT(ALLT(STR(YEAR(DATE()))), 2))

in my startup.prg. I didn't know about the little vfp5 bug when I submitted my Y2K docs, and said that vfp5 was compliant without SET CENTURY (whoops)...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform