Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Year 2000 handling
Message
 
To
15/01/1999 08:05:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00176400
Message ID:
00176524
Views:
34
Hi Martyn,

>I have had a couple of problems

First of all, make sure you have the latest version of Y2K.Prg. You can find it in the FOXUSER forum on CompuServe. If you don't have an account, let me know and I send you the file.

>The first problem is that the 'resetting' of the handling is done in the Y2K_VALID2 function of his example but I thought that if you pressed escape in a field then the READ is terminated without going through the field VALID.

In the demo code at top of the program you can see that I included an extra call to Y2K_Valid2 after the READ just for that purpose.

>The second problem I had was that the date 29/02/00 (we are using British dates) was not handled unless SET CENTURY is OFF. In our application SET CENTURY is ON to allow them to explicitly enter the century if the require so I changed the Y2K_2 procedure to check for 29/02/00 regardless of the seting of SET CENTURY.

The published version was meant for SET CENTURY OFF only. The current version can handle dates with SET CENTURY ON, as well.

Christof
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform