CTSHolding
Retrieves the state of the CTS line.
Not available at Design Time - Read Only at Run-Time
MSComm32 and Comm32 have identical behavior
 |
| |
Syntax |
value = object.CTSHolding |
| |
| |
object |
Name of the communications control. |
| |
value |
A boolean expression indicating the state of the CTS line. |
| |
| |
Example |
|
| |
|
if object.CTSHolding Then
MsgBox ("CTS is On")
Else
MsgBox ("CTS is Off")
End If |
|
| |
|
|
|
|
 |
Remarks:
CTS is used by the Com port for RTS/CTS flow control. You can usually ignore this property if you have enabled RTS/CTS handshaking / flow control.
When connecting two computers via their RS232 ports the CTS pin of one device is connected to the RTS pin of the other computer. Assuming Handshaking is not being used then setting the RTSEnable property on one computer would instantly cause a change in the CTSHolding property on the other computer.
If you decided to implement some level of flow control within your application you can monitor the state of this property. When this property is True it indicates that the remote device is ready and you are 'Clear To Send'. You would stop sending when this property goes False. |