![]() |
[finished] Selektiertes Item aus ComboBox in edit, aber wie?
Hallo,
ich habe eine ComboBox, in der man ein item auswählt, dann auch einen button klickt, und onclick auf dem button soll in die edit das selektierte item eingetragen werden. |
Re: Selektiertes Item aus ComboBox in edit, aber wie?
Delphi-Quellcode:
nachdem du den . geschrieben hast, drücke mal Strg+Space
Edit.Text := ComboBox.
PS: Vielleicht tut es das OnSelect-Event der Combo auch schon, kannst dir dann den Button sparen. |
Re: Selektiertes Item aus ComboBox in edit, aber wie?
hm...
also ich hab das:
Delphi-Quellcode:
Aber was kommt bei dem '?' rein?
Edit4.Text:=ComboBox1.Items.String[ ? ];
|
Re: Selektiertes Item aus ComboBox in edit, aber wie?
ComboBox.Text
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
begin Edit1.Text := ComboBox1.Text; end; //Oder ohne Button procedure TForm1.ComboBox1Select(Sender: TObject); begin Edit1.Text := ComboBox1.Text; end; |
Re: Selektiertes Item aus ComboBox in edit, aber wie?
Danke
damit hat sich das problem erledigt :) :coder: :hi: |
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:13 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz