Function Block REPLACE

The Function Block REPLACE replaces a part of a string with a new one.

Input STR1

The input defines the string to be processed.

Input STR2

The input defines the string that is inserted at the defined position.

Input LEN

The input defines the length of the part to be deleted. If the length is less than 1, no change is made.

Input POS

The input defines the starting position in the string STR from which the new string is concatenated. The position starts at 1. If the length is less than 1, no change is made. If the position is greater than the length of the string STR1, it will be inserted at the end.

Output

The output returns the modified string.