Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is this a bug?
#3
(05-12-2024, 12:46 AM)SMcNeill Wrote: DATA I eat cheese.
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
Ok, the syntax error only happens with data lines that contain numeric values

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.
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply


Messages In This Thread
Is this a bug? - by TerryRitchie - 05-12-2024, 12:38 AM
RE: Is this a bug? - by SMcNeill - 05-12-2024, 12:46 AM
RE: Is this a bug? - by TerryRitchie - 05-12-2024, 12:52 AM
RE: Is this a bug? - by SMcNeill - 05-12-2024, 01:26 AM
RE: Is this a bug? - by PhilOfPerth - 05-12-2024, 10:47 AM
RE: Is this a bug? - by grymmjack - 05-16-2024, 09:57 PM
RE: Is this a bug? - by SMcNeill - 05-16-2024, 10:51 PM



Users browsing this thread: 2 Guest(s)