SystemInsert (Delphi)

From RAD Studio Code Examples
Jump to: navigation, search

Language:

Description

This example uses the Insert function to edit a string.

Code

procedure TForm1.Button1Click(Sender: TObject);
var
  S: string;
begin
  S := 'Honest Lincoln';
  Canvas.TextOut(10, 10, S);
  Insert('Abe ', S, 8);                    { 'Honest Abe Lincoln' }
  Canvas.TextOut(10, 40, S);
end;

Uses

Personal tools