Insert

From SCAR Divi Manual
Revision as of 12:13, 16 November 2011 by Freddy (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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