info.mailtraq.com > Management > Script Functions A-Z > MsgInsertLine() MsgInsertLine()Inserts a new line into the current message body at the location specified by a numerical index. Lines below the insertion point have their index increased by the number of lines inserted. Multiple lines can be inserted simultaneously using the "\n" escape.
MsgInsertLine( index , string )
- index
- The line position at which the string will be inserted commencing at zero.
- string
- The line to be inserted
Replaces a malformed signature separator i := MsgGetLineCount();
While(i > 0,
Do(
If(MsgGetLine(i) = "--",
Do(
MsgDeleteLine(i),
MsgInsertLine(i, "-- ")
)
),
i := i - 1
)
) |