SComm32 Communications OCX
Loopback Test Plug
Sets or Retrieves the state (open or closed) of the serial port.
MSComm32 and SComm32 have the same syntax and functionality.
SComm1.PortOpen = value
A boolean expression indicating whether the port is open or closed
SComm1.PortOpen = True
If SComm1.PortOpen = True
MsgBox ("Port is Open)
MsbBox ("Port is Closed")
If you attempt to open a port that does not exist or a port that is already open then a trapable runtime error occurs.