EasyManua.ls Logo

Casio FX-795P

Casio FX-795P
133 pages
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...
|
7-3
Character
Functions
L
E
N
(Simple
character
variable)
eee
Function:
Obtains
the
length
of
the
character
string
in
a
simple
character
variable.
Parameter:
.
Simple
character
variable:
An
array
character
variable
cannot
be
used.
;
Explanation:
1)
Counts
the
number
of
characters
in
a
simple
variable.
2)
Usable
character
variables
are
simple
character
variables
(A$,
Y$,
$,
etc.).
Array
character
variables
such
as
B$(3)
cannot
be
used.
Example:
INPUT*String="1$%
2@
PRINT*Length="+LEN($)
36
GOTO
18
174
7-3
Character
Functions
M
|
D
$
(Location...
[,
Number
of
characters])
®
Numeric
expression
Numeric
expression
Function:
Fetches
the
specified
number
of
characters
from
a
specified
location
of
the
exclusive
character
variable
($).
Parameter:
Location:
Numeric
expression.
Values
below
the
decimal
point
are
discarded,
;
1
glocation<
101
Number
of
characters:
Numeric
expression.
Values
below
the
decimal
point
are
discarded.
1
<
number
of
characters
<
101.
When
omitted,
all
characters
after
the
specified
location
are
fetched.
Explanation:
1)
Fetches
a
specified
number
of
characters
from
a
specified
location
of
the
exclusive
character
variable-($).
2)
When
the
specified
location
is
out
of
the
character
string,
a-null
is
obtained.
3)
When
the
length
of
the
character
string
after
the
specified
location
is
smaller
than
the
specified
number
of
characters,
all
the
characters
after
the
specified
location
are
fetched.
*MID$§
can
be
abbreviated
as
MID.
Example:
1@
$=“ABCDEFGH!
JKLMNOPORSTUVWXYZ”
20
INPUT“
location=",M,*length=”,N
3@
PRINT
MIDS(M,N)
4@
GOTO
28
175

Related product manuals