Send Topic Feedback | See Object Hierarchy Chart
PC-DMIS 2022.2 Object Library
PCDLRN ActiveX DLL > OldBasic Object : WriteCommBlock Method
The comm port to close. Required.
The string to write to the port. Required.
The number of characters to write to the port. Optional. Defaults to the length of the buffer string.
WriteCommBlock Method
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