PC-Dmis 2010 Object Library | Send comments on this topic. | See Object Hierarchy Chart
WriteCommBlock Method
See Also

Collapse All Expand All

port
  The comm port to close. Required.

buffer
  The string to write to the port. Required.

Count
  The number of characters to write to the port. Optional. Defaults to the length of the buffer string.

# Description

Writes data to an opened communications port Writes characters to the specified comm port.

# Syntax

Visual Basic

    Public Function WriteCommBlock( _
       ByVal port As Long, _
       ByVal buffer As String, _
       ByVal Count As Long _
    ) As Long

# Parameters

port
  The comm port to close. Required.
buffer
  The string to write to the port. Required.
Count
  The number of characters to write to the port. Optional. Defaults to the length of the buffer string.

# Return Type

0 if successfull, -1 on error.

# See Also

OldBasic Object

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.