4/ProgramStatements
MODEL
III
BASIC
makes several assumptions abouthow to run yourprogram. For
example:
* Variables are assumedto be single-precision (unless you use type declaration
characters- see Chapter
1,
"Variable Types" ).
* A certain amount
of
memory is automatically setaside
for
strings and
arrays-
whetheryou use all
of
it
or
not.
* Execution is sequential, starting with
thefirst
statement in yourprogram
and
ending with the last.
The statements described in this chapter letyou override these assumptions, to give
your
programs muchmore versatility
and
power.
NOTE:
All
BASIC
statements exceptINPUT
and
INPUT#-l can be usedin the
ImmediateMode as wellas in the Execute Mode.
Statements described in this chapter:
Type
Definition
DEFINT
DEFSNG
DEFDBL
DEFSTR
Assignment &
Allocation
CLEARn
DIM
LET
Sequence
of
Execution
END
STOP
GOTO
GOSUB
RETURN
ON
GOTO
ON
GOSUB
FOR-NEXT-STEP
ERROR
ON
ERROR
GOTO
RESUME
REM
Tests
(Conditional
Statements)
IF
THEN
ELSE
4/1