RThreshold
Sets or Retrieves the number of bytes which must arrive in the receive buffer before an OnComm event is raised.
Available at design time and runtime.
MSComm32 and Comm64 have the same behavior
 |
| |
Syntax |
object.RThreshold = value |
| |
|
|
| |
object |
Name of the communications control. |
| |
value |
A numeric expression indicating the RThreshold number of bytes |
| |
|
|
| |
Examples |
object.RThreshold = 0 |
'// OnComm events will not be raised
'// when data is received |
| |
|
|
|
| |
|
object.RThreshold = 1 |
'// an OnComm event will be raised when
'// 1 or more characters are received in the
'// receive buffer |
| |
|
|
|
| |
|
Text1.Text = object.RThreshold |
'// Retrieves the current value |
| |
|
|
|
|
 |
Remarks:
If this value is set to a value larger than zero then the control will raise an OnComm (evReceive) event when that number of bytes, or more, are in the receive buffer.
In most cases you'll just need a value of 1 or 0. (set to 1 if you wish to use the OnComm event to notify you when data arrives. otherwise set to 0) |