Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET CENTURY & Data Sessions
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00162231
Message ID:
00162259
Views:
21
Thanks Jim,

In my example I used date constants, but what about bound controls? I guess I completly misunderstood how this SET CENTURY command works. I thought I could do a SET CENTURY TO 19 ROLLOVER 60 in my application object and it would take care of the entry and display of dates throughout, except for private data sessions, where I could put that command in my form class and make sure that the parent code runs for any form I instantiate from that class.

So, if I understand your message correctly, it would be best to have a date textbox class with those settings that I would use throughout the application? Is {^MM/DD/YYYY} a valid format, instead of year first?

Thanks!

------------------------------------------
What you are missing is that the date constants are evaluated at compile time and the set date setting in effect
during compilation controls the evaluation of the constants. To remove problems from data constants you should
use the strictdate format for them;

{^YYYY/MM/DD}

If you use this format then the date settings will have no effect on the evaluation of the constants.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform