matherp Guru
 Joined: 11/12/2012 Location: United KingdomPosts: 8034 |
Posted: 01:31pm 25 Sep 2022 |
|
|
|
The issue is that you are outputting in a different font than is used by MM.INFO(FONTWIDTH) Remember MMbasic parses the code left to right so it gets the fontwidth before you specify the font in the TEXT command. To do what you want use the font command before the for statement The exact result will depend on the relationship of the width of the original font and the one specified in the text command I've emailed Geoff to ask about the other issue. There is a hole in the code as-is because if 255 is the last char then the code can loop past the end of the string Edited 2022-09-25 23:44 by matherp |