Programming |  Pascal Programming |  Insert Procedure

Procedure: Insert(src, dest, pos)

This procedure inserts the string src into the string dest at position pos. The variables src and dest are both of type string; pos is of type integer. An error message will be issued if the pos is past the end of the string, or the string becomes too long. This is stricter error checking than that provided by the same routine in the Turbo Pascal compiler. This routine is similar to the Watcom StrInsert routine.