Autor Beitrag
mcbrunox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 92



BeitragVerfasst: Sa 15.02.03 14:07 
hi all,
mit dieser routine will ich den text ermitteln der gerade selektiert ist.
das geht auch ganz gut, wenn ich eines anklicke, aber solbald ich in der liste wieder ein anderes anklicke kommt ne fehlermeldung. was mach ich falsch ?
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.ListView1SelectItem(Sender: TObject; Item: TListItem;
  Selected: Boolean);var ss:string;
begin
...
    ss:=ListView1.items[listview1.ItemIndex].Caption;
...
end;
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Sa 15.02.03 14:23 
hallo, nutz doch die parameter:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.ListView1SelectItem(Sender: TObject; Item: TListItem; 
  Selected: Boolean);var ss:string; 
begin 
... 
   if selected then ss:=Item.Caption; 
... 
end;
mcbrunox Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 92



BeitragVerfasst: Sa 15.02.03 14:26 
bau geil eh...dank dir für die flotte hilfe