Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making application y2k complaint
Message
 
À
27/03/1999 10:31:37
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00202569
Message ID:
00202755
Vues:
25
>Henri,
>
>In addition to what Craig suggested, you may also want to use the ROLLOVER parameter of the SET CENTURY command to dictate when to use the new century and when to use the old one.
>
>Regards, Renoir
>
>>i understand you must have answered this question many time but i just moved to visual foxpro . is there simple set of commands and attiributs i can set in my application to make it y2k complaint.
>>thnaks in advance
>>henri

I use this in my MAIN program

SET CENTURY ON
DO CASE
CASE year(date()) < 2021
SET CENTURY TO ROLLOVER 20
CASE year(date()) < 2050
SET CENTURY TO ROLLOVER 50
ENDCASE
SET STRICTDATE to 1

Also remove all references to CTOD or DTOC in your programs and replace them with DATE() or DATETIME()
MSCE, MCSP, Microsoft Channel Partner

Relax, Boss. We will meet the deadline! What? You want to add MORE? What do you mean, Over Budget?

Opinions and comments are the sole responsibility of the sender, and accuracy, correctness, or pertinence is considered coincidental.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform