Справку читать почаще - проблем будет поменьше:
Цитата:
Returns a string with occurrences of one substring replaced by another substring.
Unit
SysUtils
Category
string handling routines
Delphi syntax:
function StringReplace(const S, OldPattern, NewPattern: string; Flags: TReplaceFlags): string;
Description
StringReplace replaces occurrences of the substring specified by OldPattern with the substring specified by NewPattern. StringReplace assumes that the source string may contain Multibyte characters.
S is the source string, whose substrings are changed.
OldPattern is the substring to locate and replace with NewPattern.
NewPattern is the substring to substitute for occurrences of OldPattern.
Flags is a set of flags that govern how StringReplace locates and replaces occurrences of OldPattern. If Flags does not include rfReplaceAll, StringReplace only replaces the first occurrence of OldPattern in S. Otherwise, StringReplace replaces all instances of OldPattern with NewPattern. If the Flags parameter includes rfIgnoreCase, The comparison operation is case insensitive.
|
и вот
Цитата:
TReplaceFlags indicates how to perform a search-and-replace operation
Unit
SysUtils
Delphi syntax:
type TReplaceFlags = set of (rfReplaceAll, rfIgnoreCase);
Description
TReplaceFlags is a set of flags that govern how to locate and replace a substring within a string.
|
__________________
Некоторые программисты настолько ленивы, что сразу пишут рабочий код.
Если вас наказали ни за что - радуйтесь: вы ни в чем не виноваты.
|