I want to check the state of an serial port. Particullary, I want to know if there is any possibility to verify if a serial barcode scanner is online or not.
If you are using the MSComm control, there is a property called PortOpen that you first, set to .T. to open the port. If this succeeds, then the port is open. Otherwise, you will get an error. In the init event:
It is also worth looking into if your scanner has OPOS drivers. The OPOS (or previously refered to as Ole POS by MS, but that was a bit too confusing) drivers expose significantly more functionality in POS equipment through the use of the device driver and ActiveX interfaces to the devices. It simplifies the use of POS devices and provides significantly more control.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.