Autor Beitrag
DarkHunter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 477

Win XP
D3 Prof, D2005 PE
BeitragVerfasst: Do 11.11.04 20:09 
hallo

wie kann man es einrichten das wenn ich ein item in einer combobox auswähle
eine variable den index dieses items erhält?
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Do 11.11.04 20:12 
Im ComboBox.OnSelect oder auch OnChange
ausblenden Delphi-Quelltext
1:
x:=ComboBox.ItemIndex					


Gruß,
Jörg

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
DarkHunter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 477

Win XP
D3 Prof, D2005 PE
BeitragVerfasst: Do 11.11.04 20:30 
das das über onchange geht weiß ich

aber wird mit der itemindex procedure der inhalt abgerufen oder die stelle
also wird das ein integer oder string wert
weil ich nur die stelle/position brauch
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Do 11.11.04 20:35 
Wie wärs, wenn du das mal in der Hilfe nachschaust? :roll:

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!