Visual Basic: MSComm Control

InputMode Property

See Also   Example   Applies To

Sets or returns the type of data retrieved by the Input property.

Syntax

object.InputMode [ = value ]

The InputMode property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value A value or constant that specifies the input mode, as described in Settings.

Settings

The settings for value are:

Constant Value Description
comInputModeText 0 (Default) Data is retrieved through the Input property as text.
comInputModeBinary 1 Data is retrieved through the Input property as binary data.

Remarks

The InputMode property determines how data will be retrieved through the Input property. The data will either be retrieved as string or as binary data in a byte array.

Use comInputModeText for data that uses the ANSI character set. Use comInputModeBinary for all other data such as data that has embedded control characters, Nulls, etc.