Thema: Delphi if not I = 0 then...

Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#2

AW: if not I = 0 then...

  Alt 29. Nov 2011, 11:46
Delphi wertet erst "not I" aus. Negiert also die Bits der Integer-Variable und vergleicht dann erst auf 0. Du musst in so einem Fall Klammern setzen.
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat