Sign in Join
FPDoc Onlineexperiment

Concat function

In unit System

Append one string or dynamic array to another.

Declaration

pascal
function Concat(const S1: string; const S2: string; const S3: string; 
 const Sn: string): string

Description

Concat concatenates the strings S1, S2 etc. to one long string. The same operation can be performed with the + operation.

Concat can also be used to concatenate 2 dynamic arrays of any type, resulting in a new dynamic array containing all the elements of the dynamic arrays used in the call.

Errors

None.

See also

Example: ex10

pascal
Program Example10;

{ Program to demonstrate the Concat function. }
Var
  S : String;

begin
  S:=Concat('This can be done',' Easier ','with the + operator !');
end.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.