RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.ReplaceStr Function

ReplaceStr 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 sensitive.

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

StrUtils

For a case insensitive replacement, use the ReplaceText routine. 

 

Commonly Used Long String Routines 

String Types 

String Constants 

ReplaceText

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