DTREnable
Sets or Retrieves the state of the DTR control line.
Available at Design time and Runtime.
MSComm32 and Comm32 have Identical Behavior.
 |
| |
Syntax |
object.DTREnable = value |
| |
|
|
| |
object |
Name of the communications control. |
| |
value |
A boolean expression indicating the state of the RTS control line. |
| |
|
|
| |
Examples |
|
| |
|
object.DTREnable = True |
'// Set the value |
| |
|
|
|
| |
|
If object.DTREnable = True then
MsgBox("DTREnable is On")
Else
MsgBox(DTREnable is Off")
End If |
'// Retrieves the current state of the
'// DTR 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 DTREnable is set to True then the DTR line will come ON as soon as the port is opened. It will go off again as soon as the port is closed. |