CopyFrom(Value: IStringList);
Value. Array that is a data source.
The CopyFrom method copies data from the source that is passed as the Value parameter.
Sub Main;
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 Main;
After executing the example data from the generated StrL array is copied to the StrL1 array.
See also: