21
« on: August 15, 2020, 07:58:04 AM »
Hi Jean - I found an astrobasic bug (maybe) in the horary script. If the string length exceeds the length set at the variable declaration and the test condition is met, the string doesn't get written to the canvas, but a blank line gets thrown.
In the case below, the if test was met, but the string length was > 66 which I had set with s[66]. The putstring wasn't actioned, but the countLine was incremented. The effect was no string output, but the line was shown blank.
line 2067
if ((planet_hour = MERCURY or planet_hour = SATURN) && x1 = 1){
strset(s, "%s", "Planetary hour ruler and ascendant both cold and dry - melancholic");
putstring(10, 10 + countLine * 30, s);
countLine += 1;}
I fixed it with s[99] but there was no warning like "string length exceeded" so it took a while to track down the error. It might be helpful to include this warning for coders.
Ed