About PortController
Introduction
Purchasing PortController
Redistributing PortController
License Agreement
Support
Getting Started
How to Use PortController
Using PortController with Visual Basic
Using PortController with Visual C++
Using PortController with Delphi
How to Use Events
Handling Events in Visual Basic
Handling Events in Visual C++
Handling Events in Delphi
PortController Sample Projects
Reading and Writing Binary Data
Handling PortController Errors
Reference
Properties
BaudRate Property
Break Property
BytesUsedRQ Property
BytesUsedTQ Property
Cd Property
Cts Property
DataBits Property
Dsr Property
Dtr Property
DtrDsr Property
EnableReadOnEventChar Property
EventChar Property
Parity Property
PortHandle Property
PortName Property
Ring Property
Rts Property
RtsCts Property
StopBits Property
XonXoff Property
Methods
ClearRQ Method
ClearTQ Method
Close Method
GetErrorStatus Method
Open Method
Read Method
ReadBinary Method
Write Method
WriteBinary Method
SendXoff Method
SendXon Method
Events
BreakSignal Event
CdToggle Event
CtsToggle Event
DataReceived Event
DsrToggle Event
Error Event
EvtCharReceived Event
Ring Event
TQEmpty Event

Break Property

Sets and returns the state of the break signal.

Syntax

Visual Basic

object.Break [ = value ]

Visual C++

object.GetBreak()

object.SetBreak(value)

Delphi

object.Break [: = value ]

Part Description
object An object expression that evaluates to a PortController object.
value A boolean value representing the state of the break signal.

Example

Visual Basic

'Set break
myPortController.Break = True

'Get break status
Dim breakStatus As Boolean
breakStatus = myPortController.Break

Visual C++

// Set break
m_myPortController.SetBreak(true);

// Get break status
BOOL breakStatus = m_myPortController.GetBreak();

Delphi

// Set break
myPortController.Break := Ord(breakStatus);

// Get break status
var breakStatus: boolean;     // declare variable in the proper place
breakStatus := myPortController.Break <> 0;

Remarks

All data in the transmit queue is cleared when the Break property is set to true.

Default

False

Returns

The boolean value TRUE if the break signal is on, FALSE otherwise.

Errors

Setting this value while the port is closed causes the PortController to throw a "Port is closed" exception. You may read this value while the port is closed but the returned value is meaningless as it does not represent the current or initial break state of the port.

See Also

BreakSignal Event, Dsr, Rts, SendXon(), SendXoff()