Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET CENTURY & Data Sessions
Message
From
29/11/1998 13:21:09
 
 
To
29/11/1998 13:05:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00162231
Message ID:
00162242
Views:
31
> 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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform