Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ctod() weirdness
Message
From
16/08/2015 12:03:39
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
15/08/2015 09:41:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01623085
Message ID:
01623461
Views:
42
>>That's strange. Shure you do not anything else with SET CENTURY on startup? Because 19 50 means the 50 needs to be set somehow.
>>What happend if you create a numb private form and put into init event:
>>
>>?SET("Century"),SET("Century",1),SET("Century",2)
>>SET CENTURY TO
>>?SET("Century"),SET("Century",1),SET("Century",2)
>>
>>and run the form?
>>because that is what should be default.
>>
>>BTW, Hilmar seems to have twitted me. Possibly you can hint him that all the stuff when SET CENTURY switches to what century and rollover is within HELP SET CENTURY? It's a bit awkward written, but by simply running some test one can figure it out.
>>
>
>OK, thanks for the information. (Anyway, I still find the VFP behavior weird...)

I have no trace about its use bevore the Y2K stuff was introduced, but this could be to keep programs that simple have used SET CENTURY TO 19 stable in 2000+ They will not fail until 2050, even if it is a bad solution
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.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform