Omron C200H-ASC11 Manual page 221

Ascii units
Hide thumbs Also See for C200H-ASC11:
Table of Contents

Advertisement

Details of BASIC Commands
read
Syntax:
READ
Statement. Reads values from
Description:
<variable> is any valid BASIC numeric or character variable name.
Remarks:
READ
DATA
OF DATA" error (code B004) will occur.
The variables specified in the
the type of the value in the corresponding
statement does not match the type of the value in the
will occur. The
depending on the type of the variable used in the
always be read with a numerical string variable.
When there are two or more
constants in the
RESTORE
If all data has been read and the
result in a "OUT OF DATA" error (code B004).
> 10 DATA 10, "HELLO", 1.6, "WORLD"
Examples:
> 20 READ A, B$, C, D$
> 30 PRINT B$+" "+D$
> 40 PRINT A+C
> RUN
HELLO WORLD
11.6
See also:
DATA
rem
Syntax:
REM
Description:
Statement. Inserts non-executable comments in a program.
Remarks:
<comment string> is a freely definable string that need not be enclosed in quotes. It can be as long
as the maximum line length.
REM
program easier to understand.
All characters on the same line but after the
a space between the
Comments can be added to the end of a line by using a colon to specify the start of a new
statement. Alternatively a single quote character can be used instead for the same effect.
The
Examples:
> 10 REM TEST PROGRAM
See also:
212
<variable> {, <variable>}
statements must always be used in conjunction with
statements exist, or if all of the data has been exhausted with
statement can read a numerical constant as either a string or a number
READ
statements are read in the order that they appear in the program. When the
DATA
statement is executed, data will be read again starting from the first
,
RESTORE
[<comment string>]
statements should be used to give titles to programs and to make useful comments to make the
keyword and the comment string.
REM
keyword cannot be used in
REM
statements and assigns them to the specified variables.
DATA
statements can be of any type, however the type must match
READ
statement. If the type of the variable in the
DATA
READ
statements, they are treated as a single list of data items and the
DATA
statement has not been executed then the next
RESTORE
statement are ignored. It is not necessary to insert
REM
statements as it will be assumed to be a legal data string.
DATA
statements. If no corresponding
DATA
statements then an "OUT
READ
statement then a "SYNTAX ERROR"
DATA
statement. However, a string constant must
7-6
Section
READ
statement.
DATA
will
READ

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200h-asc21C200h-asc31

Table of Contents