Autor Beitrag
rafi@work
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 147

Win2000 Prof
D7 Enterprise
BeitragVerfasst: Do 16.10.03 14:10 
Hallo zusammen!

Ich habe hier eine ListView mit einigen Einträgen. Die ListView hat 3 Spalten (IP, Port, Name). Nun möchte ich, dass wenn man auf einen eintrag in der ListView klickt, dasss die IP,der Port,der Name des selektierten Eintrages in 3 verschiedenen Edit Felder angezeigt werden. Danke für eure Hilfe!

mfg
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Do 16.10.03 14:15 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
if listview1.selected<>Nil then
  begin
    edit1.text:=listview1.selected.caption;    //1. Spalte
    edit2.text:=listview1.selected.subitem[0]; //2. Spalte
    ...
  end;


Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
rafi@work Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 147

Win2000 Prof
D7 Enterprise
BeitragVerfasst: Do 16.10.03 14:22 
Danke Keldorn, hat prima funktioniert!! :D

gruss