5.7 Standard Character String Functions
5.7.5 String replacement
5-171
5
APPLICATION
FUNCTIONS
REPLACE(_E)
REPLACE(_E)
Operation Error
No operation error occurs in the execution of the REPLACE(_E) function.
Program Example
The program which replaces the specified number of characters from the specified position in the
character string input to with the character string input to , and outputs the operation result
from .
(a) Function without EN/ENO (REPLACE)
[Structured ladder]
[ST]
g_string3:=REPLACE(g_string1, g_string2, g_int1, g_int2);
(b) Function with EN/ENO (REPLACE_E)
[Structured ladder]
[ST]
g_bool3 := REPLACE_E(g_bool1, g_string1, g_string2, g_int1, g_int2, g_string3);
s1
s2
d