Visual Basic: MSComm Control

MSComm Control Constants

See Also

Handshake Constants

Constant Value Description
comNone 0 No handshaking.
comXonXoff 1 XOn/XOff handshaking.
comRTS 2 Request-to-send/clear-to-send handshaking.
comRTSXOnXOff 3 Both request-to-send and XOn/XOff handshaking.

OnComm Constants

Constant Value Description
comEvSend 1 Send event.
comEvReceive 2 Receive event.
comEvCTS 3 Change in clear-to-send line.
comEvDSR 4 Change in data-set ready line.
comEvCD 5 Change in carrier detect line.
comEvRing 6 Ring detect.
comEvEOF 7 End of file.

Error Constants

Constant Value Description
comEventBreak 1001 Break signal received
comEventFrame 1004 Framing error
comEventOverrun 1006 Port overrun
comEventRxOver 1008 Receive buffer overflow
comEventRxParity 1009 Parity error
comEventTxFull 1010 Transmit buffer full
comEventDCB 1011 Unexpected error retrieving Device Control Block (DCB) for the port

InputMode Constants

Constant Value Description
comInputModeText 0 (Default) Data is retrieved through the Input property as text.
comInputModeBinary 1 Data is retrieved through the Input property as binary data.