Clear com – Remote Processing CAMBASIC User Manual
Page 50

Comm ands - 17
CLEAR COM$
Process Statement
SYNTAX:
CLE AR CO M$ n
PURPOSE:
To reset a serial port input buffer to the power– up condition.
REMARK S:
Executing this statement will clear the serial input buffer specified by n.
n = legal serial port number.
The input buffer parameter s are reset. Any previous CON FIG C OM$ and O N CO M$ comm ands
will be canceled.
This statement does not clear serial output buffers.
See the Multitasking Chapter for more information.
RELATED:
C O M $, C O N F IG C O M $, O N C O M$
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