|
I modified the algorithm a bit:
..........
// Write data to List
StringsList: = TList.Create;
for Idx: = 0 to Pred (Memo.Lines.Count) do
begin
if Pos (',', Memo.Lines [Idx])> 0 then // Remove empty lines
begin
Strings: = TStringList.Create;
Strings.Delimiter: = ',';
Strings.DelimitedText: = Memo.Lines [Idx];
StringsList.Add (Pointer (Strings));
end;
end;
............. |
|