I am having a problem with time.month returning a value of 1 rather than the current system clock month. All other time values are returning correctly including time.year; time.day; time.hour; time.minute; and time.second. I have a feeling it is returning an error value of 1 rather than the current system clock month. At one point during compiling, I thought I received a message regarding compatibility or something with Ecere but I am not sure. I don't seem to be able to re-create the error message. Any idea what is causing this? Here is the section of code:
Code: Select all
// These two lines are in the same OnRedraw module as the problem code
DateTime time;
time.GetLocalTime();
// This is the problem section only with time.month
spa.year = time.year;
spa.month = input11; // This is my current work-around
// spa.month = 3;
// spa.month = time.month; // This is the line returning a value of 1
spa.day = time.day;
spa.hour = time.hour;
spa.minute = time.minute;
spa.second = time.second;
// The other time values return correctly and are in full use within the code
My personal project mentioned in the following post/link is substantially up and running:
http://www.ecere.com/forums/viewtopic.php?f=2&t=135
Thanks for all previous help from Jerome. Once I was able to get a calculated value to display, it made things much easier because then I could tell immediately if I was doing something wrong. It would probably be an easy project for a seasoned programmer but it was a challenge for this amateur. I have just minor work left including the time.month problem mentioned above but it is up and fully functioning.
Thanks again for all previous help and thanks in advance if somebody can help me with the problem mentioned above.
Richard