Autor Beitrag
max120b
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33

WinXP, Linux 9.0
Delphi 2005 Professional
BeitragVerfasst: Do 26.01.06 23:53 
Hallo.

Weis jemand, wie man den Index eines Eintrages in einer ComboBox ermittelt?

(Hab schon die Suche benuzt, aber nichts gescheites gefunden)

Danke für die Antwort

Max120b
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 00:05 
Meinst Du sowas wie ComboBox1.Items.IndexOf('foo')?

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

XP
D3Prof, D6Pers.
BeitragVerfasst: Fr 27.01.06 00:07 
Oder dies...?
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.ComboBox1Click(Sender: TObject);
begin
  Caption:=IntToStr(ComboBox1.ItemIndex);
end;
max120b Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33

WinXP, Linux 9.0
Delphi 2005 Professional
BeitragVerfasst: Fr 27.01.06 00:07 
Ahh, Danke. Genaus sowas hab ich gesucht!