PC-DMIS 2019 R2 Object Library
WriteCommBlock Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
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.
PCDLRN ActiveX DLL > OldBasic Object : WriteCommBlock Method

Glossary Item Box

Description

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

Copyright © 2019. Hexagon Manufacturing Intelligence – Metrology Software, Inc. All Rights Reserved.