Appendix
G:
BASIC
Statements 343
CONT
The CONT statement, typed
at
the keyboard in immediate mode,
resumes program execution after a BREAK.
Format:
CONT
A break
is
caused by execution of a
STOP
statement
or
an
END
statement that has additional statements following it. Depressing the
STOP
key while a program is running also causes a break. Program execution
continues
at
the exact point where the break occurred.
Pressing the
RETURN key in response
to
an INPUT statement will also
cause a break. Typing CONT after this break reexecutes the INPUT
statement.
Example:
CONT
DATA
The DATA statement declares constants that are assigned to variables
by READ statements.
Format:
DATA
constant[,constant ,constant, ... ,constant]
DATA statements may be placed anywhere in a program. The DATA
statement specifies either numeric
or
string constants. String constants are
usually enclosed in double quotation marks; the quotes are not necessary
unless the string contains graphic characters, blanks (spaces), commas,
or
colons. Blanks, commas, colons, and graphic characters are ignored unless
the string
is
enclosed in quotes. A double quotation mark cannot be repre-
sented in a DATA string; it must be specified using a CHR$(34) function.
The DATA statement
is
valid in program mode only.
Example:
10
DATA
NAME,"C.D."
Defines two string variables
50
DATR
lE6,-10,XYZ
Defines two numeric variables
and
one string variable
Refer
to
the READ statement for a description
of
how DATA state-
ment constants are used within a program.