Specifications

Commands - 15
CLEAR COM$
Process Statement
SYNTAX: CLEAR COM$ n
PURPOSE: To reset a serial port input buffer to the power–up condition.
REMARKS: Executing this statement will clear the serial input buffer specified by n.
n = legal serial port number.
The input buffer parameters are reset. Any previous CONFIG COM$ and ON COM$ commands will
be cancelled.
This statement does not clear serial output buffers.
See the Multitasking Chapter for more information.
RELATED: COM$, CONFIG COM$, ON COM$
EXAMPLE: The following clears the primary serial port input buffer:
10 CLEAR COM$ 1
ERROR: <Data negative> – for n
<Data out of range> – if n is not a legal serial port number