Replace(Source: String; OldValue: String; NewValue: String): String;
Source - source string.
OldValue - substring, which should be replaced with the new value.
NewValue - replace substring.
The Replace method searches for occurrence of the substring passed by the OldValue parameter, to the Source string and replaces it with the value passed by the NewValue parameter.
Sub Main;
Var
s, s1: String;
Begin
s := "abcdcefc";
s1 := String.Replace(s, "c", "*");
End Sub Main;
After executing the example the "s1" variable will contain the ab*d*ef* value.
See also: