본문 바로가기
호구지책/VB6

[VB6] 공용컨트롤 : InputLen

by 하늘의흐름 2017. 12. 13.
반응형

Visual Basic: MSComm Control

Visual Studio 6.0

InputLen Property

See Also   Example   Applies To

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

Syntax

object.InputLen [ = value ]

The InputLen property syntax has these parts:

PartDescription
objectAn object expression that evaluates to an object in the Applies To list.
valueAn 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 MSComm control to read the entire contents of the receive buffer when Input 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


출처

https://msdn.microsoft.com/en-us/library/aa259413(v=vs.60).aspx

반응형

댓글