Visual Basic: MSComm Control

Visual Studio 6.0

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:

PartDescription
objectAn object expression that evaluates to an object in the Applies To list.
valueA value or constant that specifies the input mode, as described in Settings.


Settings

The settings for value are:

ConstantValueDescription
comInputModeText0(Default) Data is retrieved through the Input property as text.
comInputModeBinary1Data 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.


출처

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

저작자 표시 동일 조건 변경 허락
신고

설정

트랙백

댓글

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

저작자 표시 동일 조건 변경 허락
신고

설정

트랙백

댓글

Visual Basic: MSComm Control

Visual Studio 6.0

Input Property

See Also   Example   Applies To

Returns and removes a stream of data from the receive buffer. This property is not available at design time and is read-only at run time.

Syntax

object.Input

The Input property syntax has these parts:

PartDescription
objectAn object expression that evaluates to an object in the Applies To list.


Remarks

The InputLen property determines the number of characters that are read by the Input property. Setting InputLen to 0 causes the Input property to read the entire contents of the receive buffer.

The InputMode property determines the type of data that is retrieved with the Input property. If InputMode is set to comInputModeText then the Input property returns text data in a Variant. If InputMode is comInputModeBinary then the Input property returns binary data in an array of bytes in a Variant.

Data Type

Variant


출처

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


저작자 표시 동일 조건 변경 허락
신고

설정

트랙백

댓글