EOFEnable Property

       

The EOFEnable property determines if the MSComm control looks for End Of File (EOF) characters during input. If an EOF character is found, the input will stop and the OnComm event will fire with the CommEvent property set to comEvEOF.

Syntax

object.EOFEnable [ = value ]

The EOFEnable property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value A boolean expression that determines whether the OnComm event is fired when an EOF character is found, as described in Settings.

Settings

The settings for value are:

Setting Description
True The OnComm event is fired when an EOF character is found.
False (Default) The OnComm event isn't fired when an EOF character is found.

Remarks

When EOFEnable property is set to False, the control will not scan the input stream for EOF characters.