EasyManua.ls Logo

Apple IIe - Page 119

Apple IIe
320 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Apple
BASIC Reference
Guide
119
Integer
BASIC can
duplicate
this
function
by using string arrays.
Example
10
A$=
II
ABCDEFG"
20
PRINT
LEFT$
(A$,
3)
30 END
]RUN [Ret]
ABC
The
preceding
LEFT$
function
returned
the
3
leftmost
characters
in A$. .
In
Integer
BASIC,
the
statement
PRINT A$ (1,3)
would
return
the
same characters. (Be sure
that
the
variable A$
has
previously
been
dimensioned
to
7
in
Integer
BASIC.)
Applesoft
LEN
Integer
The
LEN
function
returns
the
number
of
characters
in
a string.
Configuration
LEN
(a$)
a$
is
a string constant.
Example
PRINT
LEN
("APPLE")
s

Other manuals for Apple IIe

Related product manuals