User`s manual

4-5
Example:
10 DIM A(5),B(2,3),C$(20)
Sets up a one-dimension array A with subscripted elements 0-5; a
two-dimension array B with subscripted elements 0,0 to 2,3; and a
one-dimension string array C$ with subscripted elements 0-20. Unless
previously defined otherwise, arrays A and B will contain single-precision
values.
DIM statements may be placed anywhere in your program, and the depth
specifier may be a number or a numerical expression.
Example:
40 INPUT "NUMBER OF NAMES";N
50 DIM NA(N,2)
To re-dimension an array, you must first use a CLEAR statement, either with
or without an argument. Otherwise, an error will result.
Example Program:
10 AA(4) = 11.8
20 DIM AA(7)
RUN
?DD ERROR IN 20
See Chapter 6,
ARRAYS.
LET
variable = expression
May be used when assigning values to variables. RADIO SHACK LEVEL II
does not require LET with assignment statements, but you might want to use
it to ensure compatibility with those versions of BASIC that do require it.
Examples:
100 LET A$="A ROSE IS A ROSE"
110 LET B1=1.23
120 LET X=X-Z1
In each case, the variable on the left side of the equals sign is assigned the
value of the constant or expression on the right side.