General information
Category:
Coding, syntax & commands
> 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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only