Function Descriptions
• Arguments and Return Values
Variable name
Source_string
Number_of_characters
Return_value
• Example
Variables
STRING Message
STRING Result
MID: Extract Characters from Middle
• Function
Extracts the specified number of characters starting from the specified position of the specified text
string.
• Application
Return_value := MID (Source_string, Number_of_characters, Position);
• Arguments and Return Values
Variable name
Source_string
Number_of_characters
Position
Return_value
• Example
Variables
STRING Message
STRING Result
CONCAT: Concatenate Strings
• Function
Joins the specified text strings.
Up to 31 text strings can be specified.
• Application
Return_value := CONCAT(Source_string_1, Source_string_2, ...);
• Arguments and Return Values
Variable name
Source_string_1
Source_string_2
:
Return_value
188
Data type
STRING
INT, UINT
STRING
A
B
C
D
Message
Result:=RIGHT(Message,3);
→ "FGH" is stored in the Result variable.
Data type
STRING
INT, UINT
INT, UINT
STRING
A
B
C
D
Message
Result:=MID(Message,3,2);
→ "BCD" is stored in the Result variable.
Data type
STRING
STRING
STRING
Description
Specifies the text string from
which to extract characters.
Specifies the number of char-
acters to extract.
Returns the extracted charac-
ters.
E
F
G
H
Description
Specifies the text string from which to
extract characters.
Specifies the number of characters to
extract.
Specifies the position from which to start
extracting characters. The first character is
position "1" (e.g., position 1 is "A" in mes-
sage 1 in the following illustration).
Returns the extracted characters.
E
F
G
H
Description
Specifies a text string to be joined.
Specifies a text string to be joined.
Returns the joined text strings.
Appendix C
Need help?
Do you have a question about the CX-PROGRAMMER V8.1 and is the answer not in the manual?