RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.ReplaceText Function

ReplaceText replaces all instances of string AFromText to string AToText in the source string AText and returns this value as the result. The replacement is case insensitive.

Pascal
function ReplaceText(const AText: string; const AFromText: string; const AToText: string): string;
C++
AnsiString ReplaceText(const AnsiString AText, const AnsiString AFromText, const AnsiString AToText);

StrUtils

For a case sensitive replacement, use the ReplaceStr routine. 

 

Commonly Used Long String Routines 

String Types 

String Constants 

ReplaceStr

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!