| Post Your Message | |
| |
| Previous Messages | 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
|
|
Posted By
SVS on 2003-06-12
| Problem with DATA (the BASIC command, not the StarTrek character!) :)
Following the Plus4 manual, on DATA statements you must specify a string value only if it is enclosed by quotation marks. On the contrary, I experienced that it works without quotation marks too. (Yes, with spaces inside the string). However, a large use of this technic gives me strange results (sometimes it runs as well, sometimes it stops the READ, without any error message). Who knows more about it?
|
|
| |
Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon |