EasyManua.ls Logo

Apple IIe - Page 125

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
125
Configuration
MID$
(a$,
b[,c])
a$
is
a
string
constant.band
care
numeric
constants
or
numeric
expressions
with
a value
between
0 and
255.
b
is
the
first
character
in
a$
being
returned.
c
is
the
number
of
characters
in
a$
being
returned.
If
c
is
not
included,
all characters
to
the
right
of
the
position
given
in
b
will
be
returned
.
The
MID$
function
can be
duplicated
in
Integer
BASIC using
string arrays.
Example
10 N$
="COMPUTER"
20
PRINT
MID$
(N$,
4,
3)
30
END
]RUN
[Ret]
PUT
In
the
preceding
example
,
the
fourth
position
in
the
string N$
is
the
starting
position.
The 3 indicates 3 characters. This
could
be
duplicated
in
Integer
BASIC by using N$(4,6) in place
of
MID$
(N$,1,3).
Integer
BASIC also requires
that
the
string variable had
been
dimensioned
as
DIM
N$(8).
Applesoft
NEW
Integer
The NEW
command
deletes
the
program
in
memory
and clears
all variables.
Configuration
NEW

Other manuals for Apple IIe

Related product manuals