See Also: String Functions, Length, Overstrike, Pos, Replace
Insert returns a string made up of one string inserted into another at a specified place.
(Insert ( {insert-string}, {host-string}, {position} ))
Where:
{insert-string} is the string to be inserted into the {host-string}.
{host-string} is the string that {insert-string} is to be inserted to.
{position} is the number of characters from the left of the {host-string} that the {insert-string} will be placed. The {position} value is 1-based. That is, the position of the first character in the {host-string} is 1, the second character is 2, etc.
Insert returns the value of the {host-string} with the value of {insert-string} inserted before the character that occupies the {position}'th character in the {host-string}.
Number nDigits
Move 123456789 To nDigits
Show (Insert("abc", nDigits, 3))
In this example, the value "12abc3456789" is shown.
If the {insert-string}, or {host-string} parameters are of type other than string, their values will be converted to a string for output.