String.Join

Syntax

Join(Delimiter: String; Values: Array): String;

Parameters

Delimiter - delimiter used during combination.

Values - character array containing a set of values, which should be combined into one string.

Description

The Join method combines the values of all the elements of the array passed by the Values parameter into one string, using the specified Delimiter delimiter.

Example

Sub Main;

Var

s: String;

s1: Array[3] Of String;

Begin

s1[0] := "13";

s1[1] := "24";

s1[2] := "35";

s := String.Join("_", s1);

End Sub Main;

After executing the example the "S" variable will contain the text "13_24_35".

See also:

String