05-12-2024, 12:52 AM
(This post was last modified: 05-12-2024, 12:54 AM by TerryRitchie.)
(05-12-2024, 12:46 AM)SMcNeill Wrote: DATA I eat cheese.Ok, the syntax error only happens with data lines that contain numeric values
DATA I don't eat cheese.
Two perfectly valid DATA statements, each being a sentence. If the remark signified a comment, the 2nd statement would end at I don
Do this:
DATA I don't eat cheese.: 'Now I can leave a comment after the colon.
See example 1: https://qb64phoenix.com/qb64wiki/index.php/DATA
READ a$
PRINT a$
READ n
PRINT n
DATA I don't each cheese
DATA 9 ' (nope)
DATA 9: ' (yep)
Thanks for the : tip though, that works with numeric values too. I missed that in the Wiki.