Autor Beitrag
Barret
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 156
Erhaltene Danke: 1

Win XP
D7 Ent
BeitragVerfasst: Fr 21.01.05 12:51 
Hallo!
Sorry für die Nooby Frage, aber kann mir mal einer sagen wie ich den ItemIndex einer Combobox auf den maximalen Wert setze??? Hab was ausprobihrt funktioniert aber nich. Und jetz extra ne Schleife dafür laufen zu lassen zeugt ja auch nich grade vom optimalen Quelltext.
thx schon mal im Vorraus
Barret


Moderiert von user profile iconTino: Topic aus Sonstiges verschoben am Fr 21.01.2005 um 13:02

_________________
Wir könnten ja, wenn wir wollten aber wir wollen ja nicht.
It´s not a bug, it´s a feature.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 21.01.05 12:56 
ausblenden Delphi-Quelltext
1:
LB.ItemIndex := LB.Items.Count - 1;					

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Fr 21.01.05 13:00 
Theoretisch:
ausblenden Delphi-Quelltext
1:
  ComboBox.ItemIndex := ComboBox.Items.Count -1;					


EDIT: BenBE war schneller