Skip to content

Concat

Append one string or dynamic array to another.

Declaration

Source position: system.fpd line 36

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

Name Description
Copy Copy part of a string or dynamic array.
Delete Delete elements (characters) from a string or dynamic array.
Insert Insert one string or dynamic array in another.
Pos Search for substring in a string.
Length Returns length of a string or array.

Example

Program Example10;

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

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