Serial Framework
ContentsIndexHome
PreviousUpNext
TwclSerialClient.TransmitCommChar Method

Transmits a specified character ahead of any pending data in the output buffer of the specified communications device.

Syntax
Pascal
function TransmitCommChar(const Ch: AnsiChar): Integer;
Parameters 
Description 
const Ch: AnsiChar 
The character to be transmitted.  

If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

The TransmitCommChar function is useful for sending an interrupt character (such as a CTRL+C) to a host system.  

If the device is not transmitting, TransmitCommChar cannot be called repeatedly. Once TransmitCommChar places a character in the output buffer, the character must be transmitted before the function can be called again. If the previous character has not yet been sent, TransmitCommChar returns an error.  

 

Copyright (c) 2006-2019. All rights reserved.