Delphi-PRAXiS
Seite 3 von 3     123   

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/)
-   -   combobox füllen und auslesen (https://www.delphipraxis.net/124997-combobox-fuellen-und-auslesen.html)

khh 28. Nov 2008 19:03

Re: combobox füllen und auslesen
 
Zitat:

Zitat von quendolineDD
Nicht ganz, da in meinem Beispiel als Object die Referenz auf die ID gesetzt wird.
Somit musst du das Ergebnis als Integer casten.
Delphi-Quellcode:
ShowMessage(format('Die Bezeichnung ist: %s und die ID ist %d',[ComboBox1.Items.Strings[ComboBox1.ItemIndex], Integer (ComboBox1.Items.Objects[ComboBox1.ItemIndex])]));

aha jetzt komme ich der sache näher :-)


EDIT:
habs doch noch probiert.

danke das klappt ;-)
supi!!!


danke euch


gruss Kh


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:54 Uhr.
Seite 3 von 3     123   

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