Visual Basic: MSComm Control

Output Property

See Also   Example   Applies To

Writes a stream of data to the transmit buffer. This property is not available at design time and is write-only at run time.

Syntax

object.Output [ = value ]

The Output property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value A string of characters to write to the transmit buffer.

Remarks

The Output property can transmit text data or binary data. To send text data using the Output property, you must specify a Variant that contains a string. To send binary data, you must pass a Variant which contains a byte array to the Output property.

Normally, if you are sending an ANSI string to an application, you can send it as text data. If you have data that contains embedded control characters, Null characters, etc., then you will want to pass it as binary data.

Data Type

Variant