The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Print String Bug (*solved*)
#1
Confirmed - this demonstrates it. zxb 1.3.0-s928

Code:
DIM score as uLong SUB displayScore(amount as ulong) ink 2 dim a$ as string a$="000000"+STR$(amount) print at 12,12;a$(LEN a$-7 TO);"#" END SUB FOR score= 0 to 1000000 step 10 displayScore(score) NEXT score

Should print a string, followed by a # - but the # ends up printing OVER the prior string, not after it and then on the next line and all over the place - the printed string seems to print beyond where it should. Seems to work on some numbers - so perhaps it's a STR$ bug? Though I think I've seen it on non STR$ stuff.


I just spent ages recompiling Berksman trying to find where on earth it was printing blank data across half the screen Smile - It was the print line above! Not my fault!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)