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!
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.