[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'System' (#rtl)

Concat

Append one string to another.

Declaration

Source position: system.fpd line 22

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 resulting string is truncated at a length of 255 bytes. The same operation can be performed with the + operation.

Errors

None.

See also

Copy

  

Copy part of a string.

Delete

  

Delete part of a string.

Insert

  

Insert one string in another.

Pos

  

Search for substring in a string.

Length

  

Returns length of a string.

Example

Program Example10;

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

begin
  S:=Concat('This can be done',' Easier ','with the + operator !');
end.
The latest version of this document can be found at lazarus-ccr.sourceforge.net.