Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Y2KFox in production
Message
De
16/10/1998 19:26:01
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00145263
Message ID:
00147722
Vues:
36
>Hi Pamela,
>
>>But the article raises a question.
>>
>>If I have a date field where I have SET CENTURY ON and have the user entering a 4-digit year, does Y2KFox re-interpret that year? In other words, if the user has typed in 1910 and I have my rollover set to 15, will it change that year to 2010?
>
>Nope, Y2KFOX doesn't touch 4-digit years, only 2-digit years. The reviewer actually used a rather strange combination of three GETs that span a length of over 100 years. In that case a rollover feature can't work, it handles of course only 100 years. What it does is to let you move this range. In the case the reviewer presented, three lines would have saved him all troubles. In the WHEN snippet of each date value you can change the rollover value, and for example set it to 99 for birthdates or to 15 for other dates.
>
>Christof

Hi Christof, a user can use a four digit year field the same as a two digit year, and simply enter 01/01/00 leaving the last two places blank. Y2kfox will correctly convert even though set century is on.
Dave
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform