Einzelnen Beitrag anzeigen

Zwoetzen

Registriert seit: 19. Sep 2007
Ort: Ilmenau
93 Beiträge
 
Delphi 2009 Professional
 
#12

Re: if Klausel: Wort für "aktiv"?

  Alt 3. Dez 2008, 16:06
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; // case
end; // procedure

end.
Das Case benötigt ein eigenes "end;"
  Mit Zitat antworten Zitat