>I have a foxpro 2.6 dos app.
>
>I was wondering if there is a setting I can set so that foxpro will roll a user entered date to the correct date. So if they enter say '02/02/00' it will not come out as '02/02/1900' but '02/02/2000'.
>
>I know this can be done in Visual foxpro with the rollover part of the
>set century command.
>
>Any help would be appreciated.
I've had to retrofit a few screens where a user enters a date and what I did was ...
SET CENTURY ON
in the WHEN
and
SET CENTURY OFF
in the VALID.
This doesn't protect against a worst-case user, but it's quick and easy and allows the user to decide if the date should be 2005 or 1905....
HTH,
Paul M.
MCSE/MCSA/MCT/MCP+I, A+, Network+, I-Net+
Nil carborundum illegitimi.