Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET CENTURY PROBLEM
Message
From
03/01/2000 13:33:47
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
SET CENTURY PROBLEM
Miscellaneous
Thread ID:
00311799
Message ID:
00311799
Views:
59
I have a small VFP6 app that I would like to completely ignore the century in dates (not visible nor will they enter it). No one using it will ever confuse 2000 with 1900.

I have done the following in the app's main calling program.

SET CENTURY ON
SET CENTURY TO VAL(SUBSTR(DTOC(DATE()),7,2)) ROLLOVER 80
SET CENTURY OFF

I've tried the following in the date fields of my forms.

Century = 0 - Off
DateFormat = 13 - Short
StrictDateEntry = 0 - Loose
Format = 'D'
InputMask = '99/99/99'
MaxLength = 8

And the date still appears with the century showing when the field is edited (ex 01/01/2000)

What do I need to do to get rid of the Century completely, or is this not possible ?
Next
Reply
Map
View

Click here to load this message in the networking platform