Information générale
Catégorie:
Codage, syntaxe et commandes
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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement