Zitat von
MaBuSE:
Delphi-Quellcode:
if not (BoolVar = True) then
begin
Result := False;
end
else
begin
Result := True;
end;
wie ich schon sagt, wäre s wohlbesser s andwersrum zu definieren.
Delphi-Quellcode:
if BoolVar = False then
begin
Result := False;
end
else
begin
Result := True;
end;
oder
Delphi-Quellcode:
Result := not (BoolVar = False);
Result := BoolVar <> False;