I have a vb program where I let the user enter a com port number that they will be using for an rs232 device.
It works well.
If I try to open a comport that I do not have
(com port 4) it gives me an error that says
invalid com port number.
MSComm1.CommPort = myComPortNumber
MSComm1.InputLen = 0
MSComm1.Settings = "9600,N,8,1"
MSComm1.PortOpen = True
How do I test for this before the error happens?