Jun 22, 2005 #1 delfy MIS Feb 8, 2005 96 JM i tried doing this but it doesn't work AnsiReplaceText(MyString, #13, ' '); neither does this AnsiReplaceText(MyString, #13#10, ' '); or this AnsiReplaceText(MyString, #10, ' '); anyone ideas anyone Please
i tried doing this but it doesn't work AnsiReplaceText(MyString, #13, ' '); neither does this AnsiReplaceText(MyString, #13#10, ' '); or this AnsiReplaceText(MyString, #10, ' '); anyone ideas anyone Please
Jun 22, 2005 #3 Zathras Programmer Nov 12, 2002 3,317 US Something like this should do it: Code: sNew := StringReplace(sOld,#13#10,' ',[rfReplaceAll]); Upvote 0 Downvote
Jun 23, 2005 #4 sggaunt Programmer Jul 4, 2001 8,620 GB Try Trim(string); Steve: Delphi a feersum engin indeed. Upvote 0 Downvote
Jun 23, 2005 #5 LucieLastic Programmer May 9, 2001 1,694 GB Trim(string) is a good one assuming the control characters are never in the middle of a string. Upvote 0 Downvote