Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi ComboBox Item übernehmen (https://www.delphipraxis.net/128486-combobox-item-uebernehmen.html)

nixalsverdruss 30. Jan 2009 16:42


ComboBox Item übernehmen
 
Hallo,
wie ist der Code um den String einer ComboBox zu übernehmen, der ausgewählt ist? Also um das dann gleichzusetzten mit einer Label.Caption?
Danke schon mal
nixalsverdruss

Matze 30. Jan 2009 17:07

Re: ComboBox Item übernehmen
 
Hallo

Delphi-Quellcode:
if Label1.Caption = ComboBox1.Text then
oder

Delphi-Quellcode:
if Label1.Caption = ComboBox1.Items[ComboBox1.ItemIndex] then
Grüße, Matze

nixalsverdruss 30. Jan 2009 18:08

Re: ComboBox Item übernehmen
 
Super!dankeschön!


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:53 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz