Handshaking
Sets or Retrieves the Handshaking/flow control method used by the com port
MSComm32 and Comm32 have similar behavior. (See Remarks below)
 |
| |
Syntax |
object.Handshaking = value |
|
| |
|
|
|
| |
object |
Name of the communications control. |
|
| |
value |
A numerical expression indicating whether flow control is enabled and what method to use. |
| |
|
|
|
| |
|
object.Handshaking = 0 |
'// Set the value (0 = no flow control) |
| |
|
|
|
| |
|
If object.Handshaking = 0 then
MsgBox("Handshaking is disabled ")
Else
MsgBox("Flow control is enabled")
End If |
'// Retrieves the current setting. |
| |
|
|
|
| |
|
This property can be set to one of the following values |
| |
Constants |
0 = comNone
1 = comXOnXoff
2 = comRTS
3 = comRTSXOnXOff |
'// Flow control is disabled (Default)
'// Use XonXoff
'// Use RTS/CTS
'// Use both |
|
 |
Remarks
Under some Handshaking conditions MSComm32 can cause an application to hang, appear unresponsive or lose data. This is actually a low level comTimeOut problem in the Windows com driver of NT based operating systems, W2000, XP, Vista, Win7 etc. This problem does not occur with Comm32. |