Hallo Leute !
Hab da mal ein Problem, ich lese aus einem Stringgrid die Strings aus
und möchte gern vorn und hinten noch etwas anhängen aber in jeder Zeile.
zb. xyz.txt
abc.txt
Datei - xyz.txt - Neu !
Datei - abc.txt - Neu !
Vieleicht kann mir jemand auf die Sprünge helfen.
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14:
| procedure TForm1.Button2Click(Sender: TObject); var MList: TStringList; i: Integer; begin MList := TStringList.Create; try for i := 0 to (StringGrid1.RowCount - 1) do MList.Add('Datei - '+ StringGrid1.Rows[i].Text); Memo1.Lines:=MList; finally MList.Free; end; end; |