IStringList.CopyFrom

Syntax

CopyFrom(Value: IStringList);

Parameters

Value. Array that is a data source.

Description

The CopyFrom method copies data from the specified source.

Example

Sub UserProc;
Var
    StrL, StrL1: IStringList;
    i: Integer;
Begin
    StrL := New StringList.Create;
    StrL1 := New StringList.Create;
    For i := 0 To Math.RandBetweenI(50100Do
        StrL.Add("Number " + Math.RandBetweenI(0100).ToString);
    End For;
    StrL1.CopyFrom(StrL);
End Sub UserProc;

After executing the example data from the generated StrL array is copied to the StrL1 array.

See also:

IStringList