RTSEnable
Sets or Retrieves the state of the RTS control line.
Available at Design time and Runtime.
MSComm32 and Comm32 have Similar but not identical behavior See Remarks below
 |
| |
Syntax |
object.RTSEnable = value |
| |
|
|
| |
object |
Name of the communications control. |
| |
value |
A boolean expression indicating the state of the RTS control line. |
| |
|
|
| |
Examples |
|
| |
|
object.RTSEnable = True |
'// Set the value |
| |
|
|
|
| |
|
If object.RTSEnable = True then
MsgBox("RTSEnable is On")
Else
MsgBox(RTSEnable is Off")
End If |
'// Retrieves the current state of the RTS
'// control line. |
| |
|
|
|
|
 |
Remarks:
If set before the port is opened then this value takes effect as soon as the port is opened. For example if RTSEnable is set to True then the RTS line will come ON as soon as the port is opened. It will go off again as soon as the port is closed.
Differences in behavior between MSComm32 and Comm32
MSComm32
RTSEnable can be set at design time and changed at RunTime – Incorrectly setting RTSEnable while using RTSCTS flow control can cause flow control to fail without warning and without generating any form of trappable/detectable error.
Comm32
Similar to MSComm32 except Comm32 will automatically ensure that the RTS control line is in the correct state when RTS/CTS flow control is enabled. |