PRINT "This will not fill the screen, as intended..."
SLEEP
CLS
x$ = STRING$(80 * 25, 219)
PRINT x$;
SLEEP
CLS
PRINT "But this will..." ' Why does this PRINT statement appear on row #2 in QB64, after a CLS statement?
SLEEP
CLS
x$ = STRING$(80 * (25 - 1), 219) ' Print all but last row.
PRINT x$;
LOCATE _HEIGHT, 1
PRINT STRING$(80, 219); ' Print last row, separately to fill in the entire screen.
SLEEP
' Why does this PRINT statement appear on row #2 in QB64, after a CLS statement?Yes indeed! why?
But, PRINT is one of those complex as hell commands, and nobody really knows what the heck is going on with it, and nobody wants to try and touch it with a ten foot pole!
If it were only that simple...
This would show otherwise:Code: QB64: [Select]
So if you put CLS: LOCATE 1, 1, it would error out, as the VIEW PRINT statement requires the first printable row be row 10, not 1.
Pete