I am writing a program that uses a Cash Drawer attached to an LPT port
and am wondering is there any way to test the LPT port to see if it
is ready before writing to it. I am opening the port with the OPEN
statement as follows;
In the above code if the device on LPT1 were not turned on, the program
hangs on the PRINT# 1, "Hello" line forever. Does anyone know how to
check the status before sending to the Port? Thanks in advance!
Scott Slater
------------------
and am wondering is there any way to test the LPT port to see if it
is ready before writing to it. I am opening the port with the OPEN
statement as follows;
Code:
Open "LPT1:" For Output As 1 Print# 1, "Hello" Close 1
hangs on the PRINT# 1, "Hello" line forever. Does anyone know how to
check the status before sending to the Port? Thanks in advance!

Scott Slater
------------------
Comment