Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CTOD() Will Bom on 2/29/2000 on VFP2.6
Message
De
13/04/1999 16:09:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Titre:
CTOD() Will Bom on 2/29/2000 on VFP2.6
Divers
Thread ID:
00207969
Message ID:
00207969
Vues:
45
My employer invested 2 years and $2,000,000 rewriting a number of large applications with a VB front end and a MS SQL back end. They just canceled the project for lack of results.

This means I have ~6-8 months to Y2k the programs.

They pass a lot of files between countries, mainframes and PCs on a massive network. One of the design parameters is that if you receive a date in mm/dd/yy format, you deal with it and return information in the same mm/dd/yy format.

My problem is that if I read a text file and use the CTOD() function on 2000 leap year {02/29/00}, Foxpro 2.6 returns an empty date as 2/29/1900 is an invalid date.


My solution/question:

Can I redefine the internal CTOD() function with a routine that performs the Y2k conversion on the text before the text to date conversion?

If I can, how do you redefine internal commands (I can handle the specifics of the conversions).

If I cannot redefine an internal command, do you have any suggestions other than brute force seek and destroy methods for replacing all instances of CTOD()?

Thanks,
Bryon
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform