![]() |
Kleine ComboBox Frage
Was ist daran falsch?
Delphi-Quellcode:
Im Edit Feld wird nix angezeigt.
procedure TForm2.ComboBox1Change(Sender: TObject);
begin ComboBox1.Text := Edit1.Text; end; Grolle |
Re: Kleine ComboBox Frage
es ist genau falsch herum
Delphi-Quellcode:
Edit1.Text := ComboBox1.Text;
|
Re: Kleine ComboBox Frage
Delphi hat eine sehr gute Hilfe, drück einfach mal F1 ... (keine Angst, es bringt dich schon nicht um)
:mrgreen: |
Re: Kleine ComboBox Frage
:oops:
Danke! |
Re: Kleine ComboBox Frage
Du möchtest also den ausgewählten Text in der Combobox auf ein Edit übertragen, wenn ich das recht sehe...
Dein Ansatz ist auch schon fast richtig ;)
Delphi-Quellcode:
So sollte das gehn
procedure TForm1.ComboBox1Change(Sender: TObject);
begin edit1.Text := combobox1.Text; end; |
Re: Kleine ComboBox Frage
Hallo Grolle!
Was soll das denn werden, wenn es mal fertig ist? :gruebel: Zitat:
Vermutlich meinst Du das so rum:
Delphi-Quellcode:
Dann wird bei Änderungen der ComboBox das Ganze auch an das Edit-Feld gegeben.
procedure TForm2.ComboBox1Change(Sender: TObject);
begin Edit1.Text := ComboBox1.Text; end; Falls es das nicht ist, kann ich auch nicht weiter sagen. Gruß Dietmar Brüggendiek |
Re: Kleine ComboBox Frage
Da gibt es schon dieses *supertolle* Feature, dass man informiert wird,
wenn jemand schneller war, und ihr postet trotzdem noch ... :roll: :mrgreen: |
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:02 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-2025 by Thomas Breitkreuz