CopyFrom(Value: IStringList);
Value. Array that is a data source.
The CopyFrom method copies data from the specified source.
Sub UserProc;
Var
StrL, StrL1: IStringList;
i: Integer;
Begin
StrL := New StringList.Create;
StrL1 := New StringList.Create;
For i := 0 To Math.RandBetweenI(50, 100) Do
StrL.Add("Number " + Math.RandBetweenI(0, 100).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: