Autor Beitrag
Jas DA
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28



BeitragVerfasst: Mo 12.05.03 14:15 
Habe folgende paar Zeilen:

ausblenden Quelltext
1:
2:
3:
4:
  Item4:= ListView1.Selected;
  Item4.Caption:=Edit1.Text;
  Item4.SubItems.Add(Edit2.Text);
  Item4.SubItems.Add(Edit3.Text);


In der Listview sind bereits Elemente vorhanden. Jetzt soll das angewählte Element durch den Inhalt der Edit Felder ersetzt werden. Item4.Caption wird ersetzt, die SubItems jedoch nicht. Warum nicht ?

Moderiert von user profile iconTino: Titel geändert.


Zuletzt bearbeitet von Jas DA am Mo 12.05.03 14:46, insgesamt 1-mal bearbeitet
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: Mo 12.05.03 14:21 
mit add fügst du neue subitems hinzu du musst was machen wie
ausblenden Quelltext
1:
item4.Subitems[0] := Edit2.Text;					

Gruß
Ken

Moderiert von user profile iconTino: Code-Tags hinzugefügt.