Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Listbox&Combobox (https://www.delphipraxis.net/15330-listbox-combobox.html)

the_seed 26. Jan 2004 16:37


Listbox&Combobox
 
HI, weiss nicht ob die frage schon mal da war , hab auf jedenfall nix passendes gefunden.
In einer List- bzw Combobox kann man ja items einstellen, aber wie speichere ich das item das , das ein user angeklickt hat in einem string?

zb.
eine listbox mit den items an und aus.
wenn ein feld markiert ist soll nach button click eine aktion durchgeführt werden.

Alexander 26. Jan 2004 16:40

Re: Listbox&Combobox
 
Hi,
das sollte dir helfen:
Delphi-Quellcode:
 ShowMEssage(Listbox1.Items[Listbox1.ItemIndex]);


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:42 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