Autor Beitrag
sTk
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70

Win 2000, Win XP
Turbo Delphi Pro, D2005 PE, Lazarus
BeitragVerfasst: Fr 27.01.06 13:27 
Hi,

irgendwie komm ich nicht drauf.

Wie bekomme ich den Eintrag aus einer Listbox heraus, der gerade angeklickt ist?
Geht das überhaupt?

Danke und Gruß, Steffen
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Fr 27.01.06 13:38 
ListBox1.ItemIndex ;-)

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
LLCoolDave
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 212

Win XP
Delphi 2005
BeitragVerfasst: Fr 27.01.06 13:44 
Die Frage "geht das überhaupt?" hättest du auch ruhig selber beantworten können: Was für einen Sinn hätte denn das Auswählen, wenn man das ausgewählte item nicht herausbekommen würde?
sTk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70

Win 2000, Win XP
Turbo Delphi Pro, D2005 PE, Lazarus
BeitragVerfasst: Fr 27.01.06 13:46 
Ja, aber da bekomme ich einen Integer-Wert zurück.
Ich brauche den String.

Aber Listbox.Strings[i] gibts ja nicht.

Gibts da noch ne andere Möglichkeit?

Gruß, Steffen
sTk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70

Win 2000, Win XP
Turbo Delphi Pro, D2005 PE, Lazarus
BeitragVerfasst: Fr 27.01.06 13:49 
@LLCoolDave

Ja stimmt schon :oops:
sTk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70

Win 2000, Win XP
Turbo Delphi Pro, D2005 PE, Lazarus
BeitragVerfasst: Fr 27.01.06 13:52 
Ach verdammt, manchmal sieht man den Wald vor lauter Bäumen nicht.

Listbox.Items.Strings[i]

'Tschultigung :oops: