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 Prüfen ob Item in Listbox ausgewählt ist (https://www.delphipraxis.net/64097-pruefen-ob-item-listbox-ausgewaehlt-ist.html)

milanlu 27. Feb 2006 13:08


Prüfen ob Item in Listbox ausgewählt ist
 
Hallo,
wie kann man überprüfen ob ein Item in einer Listbox markiert ist????

danke im voraus

Christian Seehase 27. Feb 2006 13:13

Re: Listbox problem
 
Moin Milan,

schau Dir mal die Eigenschaft TListBox.Selected an.

turboPASCAL 27. Feb 2006 13:16

Re: Listbox problem
 
Sowas ?

Delphi-Quellcode:
 if ListBox1.ItemIndex > 0 then // ...is was ausgewählt

chaosben 27. Feb 2006 13:18

Re: Listbox problem
 
turboPASCAL meinte:
Delphi-Quellcode:
if ListBox1.ItemIndex > -1 then // ...is was ausgewählt
:)

turboPASCAL 27. Feb 2006 13:20

Re: Listbox problem
 
Meinte er.

milanlu 27. Feb 2006 13:24

Re: Listbox problem
 
danke


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