Insert

From SCAR Divi Manual
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