StrReplace

From Soldat Community Wiki
Jump to: navigation, search

function StrReplace(Source, Search, Replace: string): string;

Parameter Info:
 Source (String): Source string to be replaced
 Search (String): Text to search
 Replace (String): Text to replace

Description:
 This function returns a string with all occurrences of search in source replaced with the given replace value. 
 This function isn't documented in the eC manual.

Examples

begin
    WriteLn(StrReplace('XMRIPPER', 'R', 'Y')); //This will write 'XMYIPPEY' to console.
end;