function Join(const Array: array of String; const Separator: String): String
function Join(const Array: array of String): String
The Join function builds a new string from the elements in the Array string array input parameter. The Separator input parameter is optional. If the Separator input parameter is specified, then the return value is a String value that contains all string elements from the array, separated by the Separator input parameter. If the Separator input parameter is not specified, then the return value is a String value that contains all string elements from the array.
Examples
X := Join(['Hello,','my','name','is','Jim'], ' '); // X is 'Hello, my name is Jim'