Link to home
Start Free TrialLog in
Avatar of TTRMW
TTRMW

asked on

Just a quick simple one - if/then/else syntax!

Below is my code, somehow managed to mess up the syntax but my tired eyes can't see where I've gone wrong!

Cheers!
procedure TFrmEPOS.BtnTransactionVoidClick(Sender: TObject);
var count: integer;
begin
  if BtnEposTotal.Enabled = true then
    for count := 0 to Strrow do
      StrGridTransaction.Cells[1,Strrow]:='';
      StrGridTransaction.Cells[0,Strrow]:='';
    else
      Strrow := Strrow +1;
      for count := 0 to Strrow do
        StrGridTransaction.Cells[1,Strrow]:='';
        StrGridTransaction.Cells[0,Strrow]:='';
      MmoTransactionTotal.Text:='';
      BtnEposAdd.Enabled := true;
      BtnEposDelete.Enabled := true;
      BtnEposQuantity.Enabled := true;
      BtnEposTotal.Enabled := true;
end;
 
end.

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Hypo
Hypo
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial