Thema: Delphi probleme mit double

Einzelnen Beitrag anzeigen

Benutzerbild von himitsu
himitsu

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.177 Beiträge
 
Delphi 12 Athens
 
#20

Re: probleme mit double

  Alt 26. Jul 2006, 14:01


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;
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests
  Mit Zitat antworten Zitat