i have a Point of sales system, after the customer pays his amount due the ChangeDue dialog is activited the dialog is in showmodal state until the cashier presses any key or the system timer reaches 30sec for the next transaction... intead my program waits for the timer to expire... i want my program to detect if the cashbox is closed so it will automatically ready for the next transaction... i am using Posiflex cashbox connected to epson TMU220 via rj45... the printer is connected at LPT1.
my code suppose to look like this...
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if cashbox <> close then
ChangeDialog.showmodal
else
ChangeDialog.close;
end;
my code suppose to look like this...
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if cashbox <> close then
ChangeDialog.showmodal
else
ChangeDialog.close;
end;