inc(count); label1.caption:=IntToStr(count); if count = 10 then begin showmessage('Вы выиграли') count:=0; end;