Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I write to COM1 ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00651925
Message ID:
00652017
Views:
21
>I will have a display pole for a cash register that display whatever I send to COM1. Do I just set the printer to COM1 or will it be more complex ?
>
>Thanks

Eric,
It depends. Does the pole display have a driver that makes the OS think it is a printer. If so, then you can simply write to that "printer" which is installed on COM1.

If not and you have to write explicitly to a serial device, then the cheapest solution would be to use the MSCOMM control. You could add it to a form/container and save it as a class. You could add your own PEMs to create an easy interface to write. You can get a small example at http://fox.wikis.com/wc.dll?Wiki~MsComm32~VFP.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform