![]() |
Case RadioGroup of [Gelöst]
Ist es möglich die auswahl in einer Radiogroup via case stement zuerkennen, oder müssen das mehrere IF schleifen sein?
also so etwas wie: case RadioGroup1.Selected of RadioButton1: [...] RadioButton2: [...] RadioButton3: [...] end; oder geht das nur so: if RadioButton1.checked then else if RadioButton2.checked then else if RadioButton3.checked then .... ? __________________________ RadioGroup.Items festlegen (und nicht RadioButtons hinzufügen) dann via RadioGroup.ItemIndex abfagen welcher "checked" ist |
Re: Case RadioGroup of
Delphi-Quellcode:
Das sollte gehen.
case RadioGroup1.ItemIndex of
0: Color := clRed; 1: Color := clGreen; 2: Color := clBlue; end; Nachtrag: Das 'Color' war nur für mich zum Testen ;) Nachtrrag 2: Tippfehler korrigiert |
Re: Case RadioGroup of [Gelöst]
hehe zur selben zeit gepostet...
habs gelöst.. trozdem danke |
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:49 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