I need to read each line in memo1.lines
and perform a specific action on it. I tried this:
procedure TForm1.Button2Click(Sender: TObject);
var
zoznam: TStringList;
Line: string;
i : Integer;
begin
zoznam := TStringList.Create;
zoznam.Assign(Memo1.Lines);
for i := 0 to zoznam.Count-1 do
begin
edit1.Text := Memo1.Text;
Button1.Click;
end;
end;
However, it takes every line into one string, and I want to read each line separately (read a line, do something, read the next line, do something, ...)