Thema: Delphi if then

Einzelnen Beitrag anzeigen

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

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

Re: if then

  Alt 9. Jun 2005, 20:36
Nein... Der Code passt schon - du hast aber eine Null vergessen! Und zwar wenn du das so machst klappt es:
Delphi-Quellcode:
if (Edit1.Text > '0') and (Edit1.Text <= '4') then Edit2.Text := '<= 4';
if (Edit1.Text > '4') and (Edit1.Text <= '9') then Edit2.Text := '<= 9';
if (Edit1.Text > '09') and (Edit1.Text <= '13') then Edit2.Text := '<= 13';
»Remember, the future maintainer is the person you should be writing code for, not the compiler.« (Nick Hodges)
  Mit Zitat antworten Zitat