Autor Beitrag
superchatti
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 296

Win XP, Red Hat Linux 7.3
Delphi 6 PE
BeitragVerfasst: Mi 30.07.03 16:35 
Wie überprüfe ich wie die beschriftung eines Items ist?
Ich weiß nicht wie das Item heißt und ich weiß auch nicht wie viele Items es gibt!

Es wäre nett wenn ihr mir helfen könntet!

Moderiert von user profile iconTino: Titel geändert & Topic verschoben.

_________________
mfG Superchatti
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Mi 30.07.03 16:48 
Ahja? Und was genau willst du machen?

Das derzeit selektierte Item bekommst Du mit DBComboBox1.Text oder alternativ mit
ausblenden Delphi-Quelltext
1:
DBComboBox1.Items.Strings[DBComboBox1.ItemIndex];					

Oder was willst Du machen? Übrigens weißt Du immer, wie viele Items es sind:
ausblenden Delphi-Quelltext
1:
ComboBox1.Items.Count;					

Und wenn Du den Wert des 8. Items willst:
ausblenden Delphi-Quelltext
1:
ComboBox1.Items.Strings[7];					

Viele Grüße,
Matthias

Moderiert von user profile iconTino: Delphi-Tags hinzugefügt.

_________________
Ha! Es compiliert! Wir können ausliefern!
superchatti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 296

Win XP, Red Hat Linux 7.3
Delphi 6 PE
BeitragVerfasst: Mi 30.07.03 16:51 
Also:
Ich möchte die Beschriftung von dem Item bekommen, damit ich ein bestimmtes feld aus einer INI Datei auslesen kann!

_________________
mfG Superchatti
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 30.07.03 16:54 
der ausgewähte eintrag ist unter der eigenschaft TEXT gespeichert.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
superchatti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 296

Win XP, Red Hat Linux 7.3
Delphi 6 PE
BeitragVerfasst: Mi 30.07.03 17:05 
Unter

ComboBox1.Text?
Oder unter

ComboBox1.Items.Text??

_________________
mfG Superchatti
Jakyll
Hält's aus hier
Beiträge: 12



BeitragVerfasst: Mi 30.07.03 17:12 
Probiers doch mal aus...
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Mi 30.07.03 17:21 
ComboBox1.Text, wie oben schon geschrieben ...

Viele Grüße,

Matthias

_________________
Ha! Es compiliert! Wir können ausliefern!
superchatti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 296

Win XP, Red Hat Linux 7.3
Delphi 6 PE
BeitragVerfasst: Mi 30.07.03 17:31 
Dankeschön!!

_________________
mfG Superchatti