Code: Alles auswählen
type
tenum = (a, b, c);
procedure test(e: tenum);
begin
case e of
//a: begin
// WriteLn(a);
//end;
b: begin
WriteLn(b);
end;
c: begin
WriteLn(c);
end;
end;
end;
Code: Alles auswählen
type
tenum = (a, b, c);
procedure test(e: tenum);
begin
case e of
a: begin
WriteLn(a);
end;
b: begin
WriteLn(b);
end;
c: begin
WriteLn(c);
end;
end;
end;
Code: Alles auswählen
type
tenum = (a, b = 10, c); // Hier ein Sprung
procedure test(e: tenum);
begin
case e of
a: begin
WriteLn(a);
end;
b: begin
WriteLn(b);
end;
c: begin
WriteLn(c);
end;
end;
end;
begin
test(a);
test(b);
test(c);
end.