>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.