![]() |
Re: if Klausel: Wort für "aktiv"?
Da fehlt einfach einmal ein
Delphi-Quellcode:
end;
|
Re: if Klausel: Wort für "aktiv"?
Delphi-Quellcode:
Das Case benötigt ein eigenes "end;" ;)
procedure TForm19.RadioGroup1Click(Sender: TObject);
begin case RadioGroup1.ItemIndex of -1: ShowMessage('Nichts markiert'); 0: Label3.Caption:='Dat is nich richtig! Versöch nochmal!'; 1: Label3.Caption:='Dat is richtig!'; 2: Label3.Caption:='Dat is nich richtig! Versöch nochmal!'; 3: Label3.Caption:='Dat is nich richtig! Versöch nochmal!'; 4: Label3.Caption:='Dat is nich richtig! Versöch nochmal!'; end; // case end; // procedure end. |
Re: if Klausel: Wort für "aktiv"?
Zitat:
Delphi-Quellcode:
procedure TForm19.RadioGroup1Click(Sender: TObject);
begin case RadioGroup1.ItemIndex of -1: ShowMessage('Nichts markiert'); 0: Label3.Caption:='Dat is nich richtig! Versöch nochmal!'; 1: Label3.Caption:='Dat is richtig!'; 2: Label3.Caption:='Dat is nich richtig! Versöch nochmal!'; 3: Label3.Caption:='Dat is nich richtig! Versöch nochmal!'; 4: Label3.Caption:='Dat is nich richtig! Versöch nochmal!'; end; end; end. |
Re: if Klausel: Wort für "aktiv"?
Stimmt danke!
|
Re: if Klausel: Wort für "aktiv"?
Man könnte beim Case auch mehrere werte mit der selben Ausgabe zusammenfassen:
Delphi-Quellcode:
0,2,3,4: Label3.Caption:='Dat is nich richtig! Versöch nochmal!';
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:43 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