NAME
StringInsert — Insert value into target string, starting from a location.
SYNOPSIS
StringInsert StringVariable InsertValue WhereAt
DESCRIPTION
Return Value
New string from the old string with the inserted value.
Arguments
StringVariableString to insert into.
InsertValueValue to insert.
WhereAtStart index of insertion. First character of InsertValue will appear here.
More Info
The first character of the string to insert will appear be at the given index when the insertion is done.

If the insert location is past the end index of the string then spaces will fill the intervening indices (see example).

Note that this command does not currently support end+1 or end-1 as some string commands do. You could use string length instead, if need be.


For information regarding exceptions / errors, see here.
EXAMPLES
% StringInsert "01245" 3 3
012345
% StringInsert 01234 5 10
01234 5
SEE ALSO
string
KEYWORDS
modify, string