Autor Beitrag
DelphiDelphin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 181



BeitragVerfasst: Sa 12.03.05 17:07 
Hi Habe folgende frage wie kann ich machen wenn ich Panel eins eine Zahl habe die grösser ist als Zwölf in Panel 2 die Antwort Ja kommt

Und wen in Panel 1 eine Zahl ist die kleiner als Zwölf ist die Antwort nein kommt :roll:
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Sa 12.03.05 17:38 
Was meinst du genau mit "wenn ich Panel eins eine Zahl habe"? Und schreibt doch statt "Panel eins" einfach "Panel1" sont verwirrst du alle..
Was soll denn passieren, wenn die Zahl 12 drin steht, oder wenn es gar keine Zahl ist?
ausblenden Delphi-Quelltext
1:
2:
3:
4:
 if StrToInt(Panel1.Caption)>12 then
  Panel2.Caption := 'Ja' else
  if StrToInt(Panel1.Caption)<12 then
   Panel2.Caption := 'Nein';