Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Not good - Y2K and SET CENTURY
Message
De
28/07/1998 07:48:07
 
 
À
28/07/1998 01:10:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00121875
Message ID:
00121903
Vues:
15
>I thought Microsoft had this problem licked in VFP 5.0!
>
>BUT...
>
>Like a lot of software houses, we display all dates with 2 digits for the year (saves data entry).
>
>So we have placed SET CENTURY TO 19 ROLLOVER 60 in our base class.
>
>This works as advertised except that entering a year of 00 (which is correctly converted to 2000) displays 20 as the year instead of 00 i.e. the first 2 digits, not the last 2 digits are displayed for all date fields.
>
>Entering 98 correctly displays 98 as the year, not 19!
>
>Any suggestions from the experts out there? This does not seem to listed as a bug with Microsoft.
>
>Over to you....

Hi George,

I placed a textbox on a form and bound it to a form property ( MyDate ). Put SET CENTURY TO 19 ROLLOVER 60 and THISFORM.MyDate = { / / } in the init of the form. When I type 01/01/00 in the textbox and tab to another text box, 01/01/2000 is displayed in the first textbox. Do you have sufficient room in the textbox to display all characters? Are you using some sort of input mask in the textbox?

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform