Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET CENTURY & Data Sessions
Message
From
29/11/1998 12:55:22
 
 
To
29/11/1998 12:41:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00162231
Message ID:
00162236
Views:
19
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform