I am wondering what is the best way to remove all the \r\n from a
If they are only at the very beginning and/or very end of the string, then
you can use the AnsiString's Trim(), TrimLeft(), and/or TrimRight() methods.
If they are in the middle of the string, however, than use the
StringReplace() function instead, or alternatively the AnsiString's Pos()
and Delete() methods in a loop.