PC-DMIS 2021.1 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 © 2020. Hexagon Manufacturing Intelligence – Metrology Software, Inc. All Rights Reserved.