InputLen

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

Syntax

object.InputLen [= value]

Parameters

object
Object expression that evaluates to a Comm control.
value
Integer expression from 0 through 999,999,999 that specifiesthe 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.

If InputLen characters are unavailable in the receive buffer, the Input property returns a zero-length string (""). As an option, a user can 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 device whose output is formatted in fixed-length blocks of data.