Difference between revisions of "Insert"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> procedure Insert(s: AnyString; var s2: AnyString; iPos: Integer); </source> ==Availability== SCAR Divi 3.00 > Current ==Descri...")
 
(No difference)

Latest revision as of 12:13, 16 November 2011

Definition

procedure Insert(s: AnyString; var s2: AnyString; iPos: Integer);

Availability

SCAR Divi 3.00 > Current

Description

Inserts a given string s into a given string s2 at the position given in iPos.

Example

var
  s: AnsiString;

begin
  s := 'Hello!';
  Insert(' World', s, 6);
  WriteLn(s);
end.

Output:

Hello World!

See Also