program Project1;
{$APPTYPE CONSOLE}
{$R *.res}
uses
System.SysUtils;
type
TFeld = (A, B, C, D, E, F, G, H, I, J, K);
TFelder =
set of TFeld;
var
FPflichtfelder: TFelder = [A, B, C, D];
FVar1: TFelder = [A, C, E];
FVar2: TFelder = [A, B, C, D, E];
function Pruefe(Var1, Var2: TFelder): Boolean;
begin
Result:=(Var1*Var2)=Var1;
end;
begin
try
if Pruefe(FPflichtfelder,FVar1)
then
writeln('
alles drin')
else
writeln('
da fehlt was');
if Pruefe(FPflichtfelder,FVar2)
then
writeln('
alles drin')
else
writeln('
da fehlt was');
readln;
except
on E:
Exception do
Writeln(E.ClassName, '
: ', E.
Message);
end;
end.