Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cash Register and Point of Sale application
Message
 
 
To
04/11/1997 21:30:57
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00058269
Message ID:
00058359
Views:
30
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform