EOFEnable
Sets or Retrieves the property indicating whether an OnComm event is generated when the EOF control code is detected in the receive buffer.
See the EOFChar property for a more detailed description of this property
Available at Design time and Runtime.
MSComm32 and Comm32 have identical behaviour (See remarks below)
 |
| |
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
MsgBox("EOFEnable is On")
Else
MsgBox(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. |