11-04-2023, 02:21 AM
Use ```SPACE$(1)``` instead of ```CHR$(0)```. What if you need to port the program to Freebasic or other BASIC that can't handle ASCII0 as well? Yes I know it's a placeholder but ```SPACE$()``` was created especially for allocating a fixed number of characters into a variable-length string. Alternatively ```Z$``` could have been declared as ```STRING * 1``` with the same result.