Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Leap Year 2000 FPW2.6
Message
 
À
08/10/1998 10:44:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00144937
Message ID:
00145046
Vues:
42
>George,
>
>There really is a problem. If you try to enter 02/29/00 in a date field on a maintenance screen (In FPW 2.6), you receive an error message 'Invalid Date'. This error message is fired on the On Readerror - this isn't anything I have coded (although I do have validation code in place). Try it out and you will see. If you manually type in the 4 digit year, the error message does NOT fire.
>
>Thanks for your thoughts though.

Hi Missy,

You get the error because regardless of the SET CENTURY, FPW defaults that value to 2/29/1900, which wasn't a leap year. In terms of making the determination whether or not 2000 is a leap year (or 1900 isn't), there's no problem with FPW. It behaves as it should.

If SET CENTURY is on, then the user should type in all four digits of the year. Christof, has a nice solution to this. For myself, I've already written a Rollover function for FPW. However, by the time that comes into play, I don't expect to have any more applications in FPW.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform