Thema: Delphi True = False ....

Einzelnen Beitrag anzeigen

Benutzerbild von s.h.a.r.k
s.h.a.r.k

Registriert seit: 26. Mai 2004
3.159 Beiträge
 
#4

AW: True = False ....

  Alt 21. Apr 2011, 15:36
Bitte NIE auf True bei einem if testen, wenn dann so:
Delphi-Quellcode:
if DoSomething() then
  ...
else
  ...;
Dann geht man diesem Problem schon mal pauschal komplett aus dem Weg.
»Remember, the future maintainer is the person you should be writing code for, not the compiler.« (Nick Hodges)
  Mit Zitat antworten Zitat