>Does anyone know how to handle communication between VFP 5.0 and computer cash register mahine ? How to control the drawer (open drawer command) and to record the duration of the drawer opened ?
>
>Any kind of help is highly appreciated,
>Regards,
>Andi Hidajat
>pkshq@cbn.net.id
From an old FP DOS app I did, I used the following to pop the cash drawer open:
!echo chr(255) > &ComPort
I have a table that holds configuration information for each workstation on the network which includes what port the cash drawer is connected to. I define the variable ComPort to hold such port information -- e.g., COM1, COM2, LPT1, LPT2.
I am sure you could also use FOPEN(), FWRITE(), and FCLOSE() to do the same thing I did.
Mark McCasland
Midlothian, TX USA