DtrDsr Property
Enables/Disables and returns DTR/DSR hardware handshaking status.
Syntax
Visual Basic
object.DtrDsr [ = value ]
Visual C++
object.GetDtrDsr()
object.SetDtrDsr(value)
Delphi
object.DtrDsr [ := value ]
| Part
| Description |
| object |
An object expression that evaluates to a PortController object. |
| value |
A boolean value representing the state of DTR/DSR handshaking.
|
Example
Visual Basic
'Set DTR/DSR
myPortController.DtrDsr = True
'Get DTR/DSR
Dim bDtrDsr As Boolean
bDtrDsr = myPortController.DtrDsr
Visual C++
// Set DTR/DSR
m_myPortController.SetDtrDsr(true);
// Get DTR/DSR
BOOL bDtrDsr = m_myPortController.GetDtrDsr();
Delphi
// Set DTR/DSR
myPortController.DtrDsr := Ord(True);
// Get DTR/DSR
var bDtrDsr: boolean; // declare variable in the proper place
bDtrDsr := myPortController.DtrDsr <> 0;
Remarks
None
Default
False
Returns
The boolean value TRUE if DTR/DSR handshaking is on, FALSE otherwise.
Errors
None
See Also
RtsCts, XonXoff
|