![]() |
CheckListBoxen einstellen
Hi,
ich hab ein Problem: Wie kann ich es als if Klausel machen, dass das un das passiert, wenn ein Button gedrückt wird. So:
Delphi-Quellcode:
funkts nicht.
if (CheckListBox1.ItemIndex = 0) and (CheckListBox1.ItemIndex = 2) then close;
Danke schon mal nixalsverdruss PS: Ich hab Strings gemacht in der Listbox) |
Re: CheckListBoxen einstellen
CheckListBox1.ItemIndex ist das (erste) selektierte/markierte Item
und überleg mal, kann eine Variable (hier ein Integer) 2 unterschiedliche Werte zugleich haben?
Delphi-Quellcode:
probier mal die Eigenschaft .Checked aus :wink:
if (i = 0) and (i = 2) then ...
|
Re: CheckListBoxen einstellen
Danke! So gehts! :lol:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:59 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