Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Y2K Slap in the Face
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00199762
Message ID:
00199863
Vues:
24
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform