INSERT
PROGRAM INSERT_DEMO
VAR
STRING1,STRING2,STRING3: STRING;
INT1: INT;
END_VAR
STRING1:=INSERT(IN1:=STRING2,IN2:=STRING3,P:=INT1);
END_PROGRAM
Function merges two strings, the second string can be inserted into the first string.
Input | Type | Description |
---|---|---|
IN1,IN2 | ANY_STRING | Input strings |
DECIMAL | ANY_INT | Position of start of the second string in the first string |
Output | Type | Description |
---|---|---|
=> | ANY_STRING | Output string |