Casio FX-890P Owner's Manual page 71

Casio personal computer owner's manual
Table of Contents

Advertisement

MID$
PURPOSE: Returns a substring of a specified length from a specified position within
a string.
FORMAT:
MID$
( string
String expression
EXAMPLE: MID$ (A$, 5, 3)
PARAMETERS:
1. String: string expression
2. Position: numeric expression truncated to an integer in the [0 , 256[ range.
3. Number of characters: numeric expression truncated to an integer in the
[0 , 256[ range. The default option is from the specified position to the end of
the string when this parameter is omitted.
EXPLANATION:
1. Returns the substring of a specified length from a specified position within a
string. A substring from the specified position to the end of the string when the
length of the substring is not specified.
2. A substring of length 0 (null) is returned when the specified position exceeds
the length of the string.
3. A substring from the specified position to the end of the string is returned
when the specified number of characters is greater than the number of
characters from the specified position to the end of the string.
SEE: RIGHT$, LEFT$
RIGHT$
PURPOSE: Returns a substring of a specified length counting from the right of a
string.
FORMAT:
RIGHT$
( string
String expression
EXAMPLE: RIGHT$ ("ABCDEF", 3)
PARAMETERS:
1. String: string expression
2. Number of characters: numeric expression truncated to an integer in the
[0 , 256[ range.
EXPLANATION:
1. Returns the substring of a specified length from the right of a string.
2. The entire string is returned when the specified number of characters is
greater than the number of characters of the string.
SEE: MID$, LEFT$
,
position
Numeric expression
, number of characters )
Numeric expression
71
[ ,
number of characters ] )
Numeric expression
F
0
F
0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Z-1grZ-1

Table of Contents