info.mailtraq.com > Management > Script Functions A-Z > MsgDeleteLine() MsgDeleteLine()Removes the specified line from the body of the current message. The line index commences at zero.
MsgDeleteLine( index )
- index
- The index of the line to be removed, starting from zero. Must be less than the value returned by MsgGetLineCount()
//Removes all blank lines from the current message
this_line := 1;
While(MsgGetLineCount() > this_line,
If(Length(MsgGetLine(this_line)) = 0,
MsgDeleteLine(this_line),
this_line := this_line + 1
)
) |