Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET CENTURY PROBLEM
Message
De
03/01/2000 13:33:47
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
SET CENTURY PROBLEM
Divers
Thread ID:
00311799
Message ID:
00311799
Vues:
58
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 ?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform