Delphi Timer Issue
问题 procedure TForm1.Timer2Timer(Sender: TObject); var ff : integer; begin for ff := 0 to 32 do If CardArray[NewValue] + CardArray[NewValue3] = PlayArray[ff] then begin sndPlaySound('cashregister.wav', snd_Async or snd_NoDefault); end else begin SendClick(451,541); end; end; Can anyone spot a reason to why this would be working incorrectly? Its triggering SendClick() when it shouldn't be... is there a reason why the if and else is not working ? for i := 0 to 32 do If CardArray[NewValue] +