[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 30

`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 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.

Documentation generated on: Feb 26 2014