IStringList.Text

Syntax

Text(Delim: String): String;

Parameters

Delim. Delimiter of elements in a string.

Description

The Text property determines an array as a text string using a separator passed as an input parameter.

Example

Sub UserProc;
Var
    StrL: IStringList;
    i: Integer;
    s: String;
Begin
    StrL := New StringList.Create;
    For i := 0 To Math.RandBetweenI(50100Do
        StrL.Add("Number " + Math.RandBetweenI(0100).ToString);
    End For;
    s := StrL.Text("_");
    Debug.WriteLine(s)
End Sub UserProc;

After executing the example the "s" variable contains text string that consists of all the elements of the StrL array separated by symbol "_".

See also:

IStringList