TCnSerialPort.Write(_CharArray,Integer,Integer) Method

Writes a specified number of characters to the serial port using data from a buffer.

Namespace: CNClrLib.Component.SerialPort
public
 procedure Write(Buffer: _CharArray; Offset: Integer; Count: Integer); overload;

Parameters

Buffer
Type: _CharArray

The character array that contains the data to write to the port.

Offset
Type: Integer

The zero-based byte offset in the buffer parameter at which to begin copying bytes to the port.

Count
Type: Integer

The number of characters to write.

Use this method when you want to write to a character buffer to create output to a serial port.