General information
Category:
Coding, syntax & commands
>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 -- try this:
SET CENTURY ON
SET CENTURY TO 19 ROLLOVER 20
Bill
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only