Concatenates one or more strings into one string System unit
 function Concat ( const String1 {,String2 ...} : string ) : string;
The Concat function concatenates (joins) strings String1, String2 ... together into one result string.
It is equivalent to the + operator, which is faster.
Related commands
Copy Create a copy of part of a string or an array
Delete Delete a section of characters from a string
Insert Insert a string into another string
Move Copy bytes of data from a source to a destination
StringOfChar Creates a string with one character repeated many times
StringReplace Replace one or more substrings found within a string
WrapText Add line feeds into a string to simulate word wrap
 Author links

 Buy Website Traffic at

 Buy Proxies at
 Download this web site as a Windows program.

Example code : Concatenate 3 words into a sentence
  result : string;

  // Concatenate using the +
  result := 'Hello '+'cruel '+'World';

  // Concatenate using the Concat function
  result := Concat('Hello ','cruel ','World');
Show full unit code
   Hello cruel World
   Hello cruel World
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Home Page