StrReplace

From Soldat Community Wiki
Revision as of 13:42, 15 August 2012 by Freeman (talk | contribs) (Created page with "function StrReplace(Source, Search, Replace: string): string; '''Parameter Info:''' Source (String): Source string to be replaced Search (String): Text to search Repl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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;