Procedure Insert will insert the specified string into a destination string.
PROCEDURE Insert(
source : DYNARRAY[] of CHAR;
VAR dest : DYNARRAY[] of CHAR;
index : INTEGER);def vs.Insert(source, index):
return dest| Name | Type | Description |
|---|---|---|
| source | DYNARRAY[] of CHAR | String to be inserted. |
| dest | DYNARRAY[] of CHAR | Destination string. |
| index | INTEGER | Position where string is to be inserted. |
theStr:='sample';
originalStr:='A string';
Insert(theStr,originalStr,3);
{inserts 'sample' into the target string}Availability: from All Versions