User`s manual
5-1
5 / Strings
"Without string-handling capabilities, a computer is just a
super-powered calculator." There's an element of truth in that
exaggeration; the more you use the string capabilities of
LEVEL II, the truer the statement will seem.
LEVEL I BASIC offered two string variables, which could be
input and output to make your programs look "friendly" (as in
HELLO, BOB!).
In LEVEL II you can do much more than
that. First of all, you're not limited to two strings – any valid
variable name can be used to contain string values, by the
DEFSTR statement or by adding a type declaration character
to the name. And each string can contain up to 255
characters.
Moreover, you can compare strings in LEVEL II, to
alphabetize them, for example. You can take strings apart
and string them together (concatenate them). For background
material to this chapter, see Chapter 1, "Variable Types" and
"Glossary", and Chapter 4,
DEFSTR.
Subjects and functions covered in this chapter:
"String Input/Output"
FRE
(string)
MID$
"String Comparisons"
INKEY$ RIGHT
"String Operations"
LEN STR$
"String Space"
ASC LEFT$ STRING$
CHR$ VAL
INSTRING Subroutine
NOTE:
Whenever
string is
given as a function argument, you can use a
string expression or constant.










