Mid - Omron SCARA YRCX Series Programming Manual

Robot controller
Hide thumbs Also See for SCARA YRCX Series:
Table of Contents

Advertisement

59

MID$

Acquires a character string from a specified position
Format
MID$ (character string expression, expression 1, expression 2)
Values
Explanation
SAMPLE
B$=MID$(A$,2,4) ················· The 2nd to 4th characters (up to the 5th
Related commands
expression 1 ...........................1 to 255
expression 2 ...........................0 to 255
This function extracts a character string of a desired length (number of characters)
from the character string specified by <character string expression>. <expression 1>
specifies the character where the extraction is to begin, and <expression 2> specifies
the number of characters to be extracted.
An error will occur if the <expression 1> and <expression 2> values violate the
permissible value ranges.
If <expression 2> is omitted, or if the number of characters to the right of the
character of <expression 1> is less than the value of <expression 2>, then all
characters to the right of the character specified by <expression 1> will be extracted.
If <expression 1> is longer than the character string, the exracted value will be a null
string (empty character string).
LEFT$, RIGHT$
characters) of A$ are assigned to B$.
8
A
B
C
D
E
F
G
H
I
J
K
L
M

MID$

8-93

Advertisement

Table of Contents
loading

Table of Contents