[Prev] [Next] [Contents] [Commodore] [New] [Search] [Home]

BASIC error message ?OUT OF DATA is printed. If the number of variables specified is fewer than the number of elements in the DATA statement(s), subsequent READ statements will continue reading at the next data element. (See RESTORE.)

*NOTE: The ?SYNTAX ERROR will appear with the line number from the DATA statement, NOT the READ statement.

EXAMPLES of READ Statement:

   110 READ A,B,C$
   120 DATA 1,2,HELLO

   100 FOR X=1 TO 10: READ A(X):NEXT

   200 DATA 3.08, 5.19, 3.12, 3.98, 4.24
   210 DATA 5.08, 5.55, 4.00, 3.16, 3.37

   (Fills array items (line 1) in order of constants shown (line 5))

   1 READ CITY$,STATE$,ZIP
   5 DATA DENVER,COLORADO, 80211

REM

TYPE: Statement
FORMAT: REM [<remark>]

Action:The REM statement makes your programs more easily understood when LISTed. It's a reminder to yourself to tell you what you had in mind when you were writing each section of the program. For instance, you might want to remember what a variable is used for, or some other useful information. The REMark can be any text, word, or character including the colon (:) or BASIC keywords.

The REM statement and anything following it on the same line-number are ignored by BASIC, but REMarks are printed exactly as entered when the program is listed. A REM statement can be referred to by a GOTO or GOSUB statement, and the execution of the program will continue with the next higher program line having executable statements.


[Prev] [Next] [Contents] [Commodore] [New] [Search] [Home]
This page has been created by Sami Rautiainen.
Read the small print. Last updated November 14, 1998.