EOFEnable
Sets or Retrieves the property indicating whether an OnComm event is generated when the EOF control code is detected in the receive buffer.
Available at Design time and Runtime.
MSComm32 and Comm64 have the same behaviour.
 |
| |
Syntax |
object.EOFEnable = value |
| |
|
|
| |
object |
Name of the communications control. |
| |
value |
A boolean expression. Default is False |
| |
|
|
| |
Examples |
|
| |
|
object.EOFEnable = True |
'// Set the value |
| |
|
|
|
| |
|
If object.EOFEnable = True then
MessageBox.Show ("EOFEnable is On")
Else
MessageBox.Show (EOFEnable is Off")
End If |
'// Retrieves the value |
| |
|
|
|
|
 |
Remarks:
If enabled this property will cause an OnComm event to be triggered when the EOF control character (Ascii 26) is read by the Input property. |