This is an example of a sub-string reference:
LET A$="Zebra Quality Printers"
LET B$=A$(1:13)
PRINT B$
Zebra Quality
This is an example of a sub-string assignment.
LET A$= "1234"
LET A$(2:3)= "55" ! A$ NOW = 1554
LET A$(2:3)= "" ! A$ NOW = 14
LET A$= "1234"
LET A$(2:3)= A$(1:2) ! A$ NOW = 1124
LET A$= "1234"
LET A$(2:1)= "5" ! A$ NOW = 15234
The best way to
think of assignment to a sub-string is as follows: an assignment is
like selecting a word, and pasting over the selection with the new string.