09-19-2024, 01:37 AM
I may have a simplistic misunderstand about the use of semicolon, strings, plus sign and quotes in print statements.
1 q$=chr$(34)
2 print q$; "test"; q$
3 print q$ + "test" + q$
Output is "test" and "test" on separate lines. I assumed ? q$; "test"; q$ would be an improper use of concatenation in a print statement. I thought line 3 was the right way. But it works.
If I try to type q$"" the line changes to q$; "". Auto corrects and makes me wonder. I checked this output in the mother tongue "qb45". Works like qb64.
If the +'s are not needed, do they take cycles and code unnecessary ? Again wondering.
I know PRINT is most code producing and time wasting part of the source in qb64.
Thanks
1 q$=chr$(34)
2 print q$; "test"; q$
3 print q$ + "test" + q$
Output is "test" and "test" on separate lines. I assumed ? q$; "test"; q$ would be an improper use of concatenation in a print statement. I thought line 3 was the right way. But it works.
If I try to type q$"" the line changes to q$; "". Auto corrects and makes me wonder. I checked this output in the mother tongue "qb45". Works like qb64.
If the +'s are not needed, do they take cycles and code unnecessary ? Again wondering.
I know PRINT is most code producing and time wasting part of the source in qb64.
Thanks