Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET CENTURY & Data Sessions
Message
 
 
À
29/11/1998 13:05:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00162231
Message ID:
00162242
Vues:
20
> I am at a lost here... It should work, and I just tried it in VFP6 and it
> works very well: I get 1998, 2045 and 1965, just as expected.

Yes, I'm "at a loss" too. So, did you use just SET CENTURY ON, without the second one with rollover? Would there be a difference in VFP6?

> As for the redundancy of set century, I never saw it as redundant at all!
> I always figured that SET CENTURY TO
> xx ROLLOVER xx was for those who didn't wanted SET CENTURY ON, so I always
> found it natural to have to
> use both.

Well, the help file shows the syntax of the set century command as...

SET CENTURY ON | OFF | TO [nCentury [ROLLOVER nYear]]

I have always understood the | to mean optional, so in this case you can use ON or OFF or TO... that's why I thought it would be redundant to use both ON and TO...

Well, it seems like using both did do something in my code, but it isn't right for some reason.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform