Hi,
I wrote a program with Version 0.8a. Today, I wanted to perform a small bug fix but after compiling, my program is not working anymore.
What changed is something in the variable structure. The routine listed here is for testing a date structure. If the field day is only from 1 to 9, the field has to be converted to e.g. 01 or 02 for today. This worked in v0.8a:
(... get system date before, HH_TAG means actual day ...)
if(int(HH_TAG$ <= 9))
HH_ZWI$ = ("0" + HH_TAG$);
HH_TAG$ = HH_ZWI$;
ShowMessage(HH_ZWI$);
end;
For today (2nd of Jan, 06) the result of HH_ZWI$ is "2". In V0.8a it was "02". I changed the "0" to "3" for testing. The result is "5". If I changed the "0" to "A0", the result was "A02". I don“t want to calculate the zero plus 2 = 2. For this I used the "". For calculating I would leave the "" away. E.g. HH_ZWI$ = (0 + HH_TAG$);
PPL should recognize again, that using "0" instead of only 0 should be a character addition.
A second one wich is not working in V0.9 anymore is:
HH_TAG$ = "02"; // Actual day
HH_MONAT$ = "01"; // Actual Month
HH_JAHR$ = "06"; // Actual Year
HH_HEUTE$ = HH_TAG$ + "." + HH_MONAT$ + "." + HH_JAHR$;
// result in V0.8a was "02.01.06"
in V0.9 the result is 9
Is there a possibility to download the 0.8a again?
Thanks a lot !
DirectDance
I wrote a program with Version 0.8a. Today, I wanted to perform a small bug fix but after compiling, my program is not working anymore.
What changed is something in the variable structure. The routine listed here is for testing a date structure. If the field day is only from 1 to 9, the field has to be converted to e.g. 01 or 02 for today. This worked in v0.8a:
(... get system date before, HH_TAG means actual day ...)
if(int(HH_TAG$ <= 9))
HH_ZWI$ = ("0" + HH_TAG$);
HH_TAG$ = HH_ZWI$;
ShowMessage(HH_ZWI$);
end;
For today (2nd of Jan, 06) the result of HH_ZWI$ is "2". In V0.8a it was "02". I changed the "0" to "3" for testing. The result is "5". If I changed the "0" to "A0", the result was "A02". I don“t want to calculate the zero plus 2 = 2. For this I used the "". For calculating I would leave the "" away. E.g. HH_ZWI$ = (0 + HH_TAG$);
PPL should recognize again, that using "0" instead of only 0 should be a character addition.
A second one wich is not working in V0.9 anymore is:
HH_TAG$ = "02"; // Actual day
HH_MONAT$ = "01"; // Actual Month
HH_JAHR$ = "06"; // Actual Year
HH_HEUTE$ = HH_TAG$ + "." + HH_MONAT$ + "." + HH_JAHR$;
// result in V0.8a was "02.01.06"
in V0.9 the result is 9
Is there a possibility to download the 0.8a again?
Thanks a lot !
DirectDance