Autor Beitrag
bfelix
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 61

WIN 2000 Prof., Win XP Prof., Win 7 Starter und Prof., SuSe Linux 11.3,
Delphi 7 Pers.
BeitragVerfasst: Di 15.02.11 21:44 
Hallo Community,
wie kann ich aus einer ListBox die Nummer des Ausgewählten Eintrags abrufen?
Danke,
BFelix
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Di 15.02.11 21:46 
wie wäre es mit Listbox1.Items.ItemIndex;?

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
bfelix Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 61

WIN 2000 Prof., Win XP Prof., Win 7 Starter und Prof., SuSe Linux 11.3,
Delphi 7 Pers.
BeitragVerfasst: Di 15.02.11 21:50 
Hallo,

wenn ich den Index anzeigen will:
ausblenden Delphi-Quelltext
1:
label5.Caption:=InttoStr(listbox1.Items.ItemIndex)					


dann zeigt er bei mir eine Compilermeldung an:

Zitat:
Undefinierter Bezeichner: 'ItemIndex'


Was mache ich da falsch?

Danke,
BFelix
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Di 15.02.11 22:02 
Sorry, ohne das Items. Nur Listbox1.ItemIndex;

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.