>I'm having a problem with the ROLLOVER setting for the dates in my application.
>
>The birthdates seem to be the only fields that are affected, as those are the only dates that go back to 1949 and beyond.
>
>Where do I have to insert the following line?
>
>SET CENTURY ON ROLLOVER 20
>
>I have it in various places throughout my application, but no matter where I put it, anytime I enter a date prior to 1950 in the form mm/dd/yy, it defaults the century to 20. Are there additional setting I have to use for that particular text box?
>
>I know you can use the regional settings tab (Tools/Options from the FoxPro menu bar) to set the century on or off, but there is no setting for the ROLLOVER value.
>
>I really didn't want to use the Windows default system settings for this, but I may have to resort to that.
>
>Can anyone shed a bit of light on this for me?
>
>Thanks!
Kile,
The default setting for the ROLLOVER clause is 50 years prior to the current year. Therefore, any year value who's last two digits are less than that (in this case 1900-1949) rolls over.
The scope of the setting is within the current data session.
George
Ubi caritas et amor, deus ibi est