Posted By
JamesC on 2003-06-12
| Re: Problem with DATA (the BASIC command, not the StarTrek character!) :)
Do not use capitals in lowercase mode. The uppercase letters will be tokenized as keywords, causing the READ statement to error.
If you do not use capitals, you do not need quotes unless a delimiter is intended to be in the data statements. Delimeters are comma, semicolon, colon, and the Enter key (CHR$(13)).
10 DATA "Robert Allen", "James C" <-- Allowed 10 DATA Robert Allen, James C <-- Not Allowed 20 DATA ROBERT ALLEN, JAMES C <-- Allowed 20 DATA "ROBERT ALLEN, USA" , "JAMES C, USA" <--Allowed, 2 strings read 20 DATA ROBERT ALLEN, USA, JAMES C, USA <-- Allowed, 4 strings read
|