Specifications
Commands - 20
COM$
Process Function
SYNTAX: n$ =COM$(n)
PURPOSE: To return a string from the serial input buffer. This function is usually used in conjunction with ON
COM$.
REMARKS: n = legal serial port number.
COM$ returns the characters in the buffer up to the terminating character (if specified) or the total
number of characters in the buffer.
When COM$ is executed, the characters in the buffer are removed. Immediately executing COM$
again will produce a null string.
RELATED: CLEAR COM$, ON COM$, CONFIG COM$
EXAMPLE: See the ON COM$ statement.
ERROR: <Data negative> – for n
<Illegal argument> – if n is not a legal serial port number