Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Leap Year 2000 FPW2.6
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00144937
Message ID:
00145575
Views:
28
>Hi Rick,
>
>>In general, all you have to do to handle Y2K in FPW2.6 or FPD2.6 is 1) SET CENTURY ON, 2) expand all date fields to a width of 10 characters (in screens and on reports), and 3) stick a UDF call in the VALID() of all your date GET's to return date + 100 years if the date the user entered is less than some rollover date of your choosing.
>
>Just a word of warning here. Depending on your code it might not be as easy. With SET CENTURY ON, the CTOD() function behaves differently and returns a 10-character string, not 8 characters. Your program might depend on that size, for example for string manipulations, or because you write the string into a text file. Another problem is that some application turn ON and OFF SET CENTURY as they need it.
>
>So you have to review your entire code to make sure it does work with a different SET CENTURY setting, just changing the width might not be sufficient.
>
>Christof

Points well taken, Christof, thanks for the reminders.
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Previous
Reply
Map
View

Click here to load this message in the networking platform