Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Y2K Slap in the Face
Message
De
20/03/1999 14:09:12
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00199762
Message ID:
00200165
Vues:
13
>>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)...

Set Cent to int(year(date())/100)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform