Autor Beitrag
mexx
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Mo 19.12.05 14:58 
Hallo,

ich habe ein Listview welches Subitems hat. Nun will ich diese füllen. Das mache ich so.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
        with Inter.ListView1 do
         begin

          ListItem := Items.Add;
          ListItem.Caption := Eintrag;

          ListItem.SubItems.Add(IPs[I]);
          ListItem.SubItems.Add(Phones[I]);

         end;


Nun möchte ich aber das Listview weiter füllen und in er zweiten Spalte etwas hinzufügen. Das versuche ich so.

ausblenden Delphi-Quelltext
1:
   ListView1.Items.Item[i].SubItems.Strings[2] := PCs[i];					


Es funktioniert aber nicht. Wie kann ich die zu füllende Spalte ansprechen?

THX, mexx
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mo 19.12.05 16:40 
Hallo,

das müsste weiterhelfen:
www.delphi-forum.de/....php?p=270696#270696
>> ab Zeile 45

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )