property OutBuffUsed : Word
Returns the number of bytes currently in the output buffer.
Use OutBuffUsed to detect whether or not any outgoing data remains in the output buffer.
The following example checks to see if any outgoing data is still in the output buffer. If so, it sets a status trigger to go off once the buffer is completely empty. The code assumes that an OnTriggerStatus event handler has already been activated.
if ApxComPort.OutBuffUsed <> 0 then begin
MyHandle := ApxComPort.AddStatusTrigger(stOutBuffUsed);
ApxComPort.SetStatusTrigger(MyHandle, 0, True);
end;
See also: OutBuffFree