Autor Beitrag
dm
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 83



BeitragVerfasst: Do 05.06.03 16:02 
Hallo.

ich möchte die aktuell in einer listbox markierte zeile auslesen.

bei listbox1.items.text haut er mir ALLE items raus.

mit listbox1.items[1].text etc. kann ich in dem fall nicht arbeiten.

gibt es keine methode ala "selected row" oder so ?


Gruß Dennis
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 05.06.03 16:09 
Hallo

Schon die Hilfe gefunden?
Schau dir itemindex an
ausblenden Delphi-Quelltext
1:
s:=listbox1.items[listbox1.itemindex];					


Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Teutobod
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 55



BeitragVerfasst: Do 05.06.03 16:10 
du kannst es so machen


ausblenden Quelltext
1:
2:
3:
4:
for i:=0 to listbox1.Items.Count-1 do
    begin
    if listbox1.Selected[i] then .......
    end;


Edit: Da war schon einer schneller :lol:


Zuletzt bearbeitet von Teutobod am Do 05.06.03 16:12, insgesamt 1-mal bearbeitet
dm Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 83



BeitragVerfasst: Do 05.06.03 16:11 
Titel: danke
danke euch beiden