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

[VB6] 공용컨트롤 : InputMode

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

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

반응형

댓글