Puckdropper was on the right track with the white spaces.
I stumbled back on this topic because I was checking the old news entries and this was linked. Because it was never solved, I tried to recreate it.
Sure enough, it did just as it did back then (why wouldn't it?)
Doing the fol... more
You read the manual for the PRINT statement?- Puckdropper,Wed Sep 01 2021 6:41pm
jumping to documentation when I have a question about how/why something is working not like I expect it to.
COBOL is full of weirdnesses and multiple ways to do things.
Example, here's one of the DISPLAY statement's possible syntaxes:
Source: https://www.microfocus.com/docum... more
I can use the data loaded into the matrix to define the color of the block that I'm outputing. I just can't output it exactly. Ex: FOR x% = 1 TO 5 FOR y% = 1 TO 5 COLOR matrix(x%, y%) PRINT "#" NEXT y% NEXT x% I'm thinking if I store the data in double quotes ("") in the file, it'l... more
You can rewrite QB and add a CHAR datatype, or just live with the space penalty. Oooh! Oooh! I know! You can create defined strings of every string that you can have, and then use those throughout your program. Think of the number of times you'll save four bytes!