>>>Time for an extremely stupid question -- is there any particular reason why you have
>>>SET CENTURY TO 20
>>>instead of
>>>SET CENTURY TO 19
>>
>>Thanks. It seems that this was the solution to the riddle. Setting it to 19, I get the correct date. Why the setting is so, I have no idea - Visual ProMatrix set it automatically. (Nor do I have any clear idea why, according to Visual FoxPro, I should set century to 19, when we are actually in the 21st century...)
>
>It's zero based.
>
>IOW, the XX century is "all the years written as 19nn, including 2000 but excluding 1900", so this "set century to 19" is actually "set the hundreds part of the year to 19". The word century here is a complete misnomer.
Hi Dragan;
SET STRICTDATE TO 0
SET CENTURY TO 19
?{01.01.01}
?{01.01.00}
?{01.01.99}
?{01.01.65}
?{01.01.64}
ROLLOVER, if not defined, goes to (YEAR(DATE())+50)%100
even if, at your place, it goes to 0 as one could read out of the help (but to me it means only at version 5) , this will change in 35 years.
What is the return of
?SET("Century"),SET("Century",1),SET("Century",2)
on your comp?
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]