Serial Framework
ContentsIndexHome
PreviousUpNext
TwclSerialClient.PurgeComm Method

Discards all characters from the output or input buffer of a specified communications resource. It can also terminate pending read or write operations on the resource.

Syntax
Pascal
function PurgeComm(const Flags: TwclSerialPurgeFlags): Integer;
Parameters 
Description 
const Flags: TwclSerialPurgeFlags 
The set of the TwclSerialPurgeFlags flags.  

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

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