Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TStringHelper.Join

Join a series of strings, separated using a given separator

Declaration

Source position: syshelph.inc line 91

public class function TStringHelper.Join(

  const Separator: string;

  const Values: array of Const

):string; overload;

class function TStringHelper.Join(

  const Separator: string;

  const Values: array of string

):string; overload;

class function TStringHelper.Join(

  const Separator: string;

  const Values: array of string;

  StartIndex: SizeInt;

  ACount: SizeInt

):string; overload;

Description

Join will return a string that consists of all the strings in Values concatenated, with Separator between them. Values can be an array of strings, but can also be an array of arbitrary values: the values will first be transformed to a string representation.

In the case where an array of strings is passed in, a start index StartIndex and element count ACount can be passed in as well. Only the elements in the indicated range will then be used for the output.

Errors

Classes, pointers or interfaces will not be transformed, but will result in a 'unknown type: NNN' string being inserted.

See also

TStringHelper.Split

  

Split a string in a number of parts


Documentation generated on: Sep 29 2022