BASIC FUNCTIONS
SECTION 5.13
5.13.3 Function LET assigns a value to a variable.
Syntax LET variable name = numerical expression
LET string variable= string expression
Examples LET C = 5
LET D3
= B
LET J = SIN(X)
LET A$ = "HELLO"
LET
A$ = 8$ (see note)
Use of LET in an assignment statement is optional. The
formats:
C = 5
D3 = B
J = SIN(X)
A$= "HELLO"
A$ = B$ (see notes below)
are equally acceptable.
Remarks NOTE: When equating string arrays of unequal length the
string array on the right side of the equates will be
truncated on the left side.
VER.V09F
Example:
DIM A$(1,5)
A$= "HELLO"
8$ = "GOODBYE"
A$
= B$
then A$ =
11
GOODB
11
NOTE: Remember that string lengths default to 20
characters. In the above example, A$ should be DIMed to 5
character length as shown.
Strings can be created by multiple additions,
Example:
A$ = A$ + MID$(C$,4,3)+CHR$(65)
PAGE 5 - 65