Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET CENTURY & Data Sessions
Message
 
 
À
29/11/1998 12:41:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00162231
Message ID:
00162236
Vues:
25
Ok, so I just tried the following in the Init of the form...

SET CENTURY ON
SET CENTURY TO 19 ROLLOVER 60
WITH THISFORM
.Txt1.Value = DATE()
.Txt2.Value = {11/29/45}
.Txt3.Value = {11/29/65}
ENDWITH

... and I get ...

11/29/1998
11/29/1945
11/29/1965

So, not only does it seem redundant that I would have to do the set century on before doing set century to 19 rollover 60, but doing so it seems that the second set century command is ignored. So, now I'm even more confused. I would expect the second set century command to be the one in effect for the text box value assignments, but it appears to me that the set century on DID fix the problem of the missing 1900 part of the year, but the third text box should be displaying 11/29/2045, not 1945.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform