where will i place my error checking when there is no terminal connected to comm port?(ex. my program didn't receive any response since there is no power in the terminal) pls help... tnx
Have a look at the OnComm event in the help file. You can put a Select Case statement in this event to handle the error notifications provided by the MSComm control.
You can also use this event to monitor send/receive activity.
tnx for the response Paul. i've tried checking the help file but i've found no information that could help me. Nway, i've read somewhere in this forum sugessting to send a command to the terminal that returns a response. If in a given time(by setting the timer) a response is not receive, it means it could be that there is no terminal connected. What i did in my program was that I prompt an error msg saying "operation timed out" in the timer control event, meaning a response was not receive from the terminal. So far, it works as i want it to happen though i'm still testing it. I hope what i've written here can help others.
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.