InputMode

This property sets and returns the type of data retrieved by the Input property.

Syntax

object.InputMode [= value]

Parameters

object
Object expression that evaluates to a Comm object.
value
Value or constant that specifies the input mode. The following table shows the settings for value.
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 be retrieved either as string or as binary data in a byte array.

Use 0 for data that uses the ASCII character set. Use 1 for all other data such as data that has embedded control characters, null characters, and so on.