New ReplaceString function in UnitCommonRoutines : LUSENET : OCI Best Practices : One Thread

function ReplaceString(const searchFor, replaceWith, aString: string): string;

I use this when formatting address text for display in a list view. Address text contains carriage returns and line feed characters. I want a single line of text.

  := ReplaceString(#13#10, anAddressHistoryItem.Address.Text, ', ');

-- Anonymous, August 21, 1998

Moderation questions? read the FAQ