InputLen

Sets and returns the number of characters the Input property reads from the receive buffer.

Syntax

object.InputLen [ = value ]

The parts of the InputLen property syntax are described in the following table.

Part Description
object An object expression that evaluates to an object.
value An integer expression specifying the number of characters the Input property reads from the receive buffer.

Remarks

The default value for the InputLen property is 0. Setting InputLen to 0 causes the Comm control to read the entire contents of the receive buffer when the Input property is used.

If InputLen characters are not available in the receive buffer, the Input property returns a zero-length string (""). The user can optionally check the InBufferCount property to determine if the required number of characters are present before using Input.

This property is useful when reading data from a machine whose output is formatted in fixed-length blocks of data.

Data Type

Integer