Forum: Sonstige Fragen zu Delphi
Delphi
by Hador,
8. Okt 2008
Wenn du das so gemacht hättest, hättest du das Problem nicht, da dann ja nur dann weiter geprüft wird, wenn niemand vorher gewonnen hat :wink:
Forum: Sonstige Fragen zu Delphi
Delphi
by Hador,
6. Okt 2008
Erst einmal kannst du deinen Code ganz einfach um ein vielfaches verkürzen.
Aus
// 1-2-3
if (Button1.caption='X') and (Button2.caption='X') and (Button3.caption='X') then
Form3.Show;
if (Button1.caption='X') and (Button2.caption='X') and (Button3.caption='X') then
Panel2.Caption:='gewonnen';
// 4-5-6
if (Button4.caption='X') and (Button5.caption='X') and (Button6.caption='X')...