Replace

From SCAR Divi Manual
Revision as of 20:09, 1 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function Replace(Text, FindStr, ReplaceStr: AnsiString): AnsiString; </source> ==Availability== SCAR Divi 3.00 > Current ==Des...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function Replace(Text, FindStr, ReplaceStr: AnsiString): AnsiString;

Availability

SCAR Divi 3.00 > Current

Description

Replaces all instances of a given string FindStr by a given string ReplaceStr in a given string Text and returns it.

Example

begin
  WriteLn(Replace('Hello...', '...', ' World!'));
end.

Output:

Hello World!

See Also