New ReplaceString function in UnitCommonRoutinesgreenspun.com : 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.
aListItem.Caption := ReplaceString(#13#10, anAddressHistoryItem.Address.Text, ', ');
-- Anonymous, August 21, 1998