Autor Beitrag
chriss1988
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 389

windows xp prof,home,windows98
delphi5
BeitragVerfasst: Do 09.03.06 10:59 
hi @ all

ich hab ne radiogroup indem es einen punkt namens anderer gibt.
nun soll beim anklicken dieses punktes und bei dem bestätigen mit einem button ein edit feld sichtbar werden(dieses habe ich vorher auf visible false gestellt).

ja ich habs auch schon mal probiert doch das geht net, weil er mir als nen fehler bringt

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
case radiogroup1.ItemIndex of
0: Auswahl:=zwan;
1: Auswahl:=funf;
2: Auswahl:=hun;
3: Auswahl:=dreihun;
4: Auswahl:=funfhun;
5: Auswahl:=begin
            anderer
            edit1.visible=true;
            end;
end;



Fehler unit3.pas(53): Ausdruck erwartet, aber 'BEGIN' gefunden

kann mir da einer helfen
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Do 09.03.06 11:29 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
case radiogroup1.ItemIndex of  
0: Auswahl:=zwan;  
1: Auswahl:=funf;  
2: Auswahl:=hun;  
3: Auswahl:=dreihun;  
4: Auswahl:=funfhun;  
5: Auswahl:=anderer;
end;  
if radiogroup1.ItemIndex = 5 then begin
edit1.visible:=true;
end;
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Do 09.03.06 19:53 
Oder:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
case RadioGroup1.ItemIndex of  
  0: Auswahl := zwan;  
  1: Auswahl := funf;  
  2: Auswahl := hun;  
  3: Auswahl := dreihun;  
  4: Auswahl := funfhun;  
  5: begin  
       Auswahl       := anderer;  
       Edit1.Visible := True;  
     end;  
end;

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)