Function Com_Close() Foundation

Closes the receive queue of a COM port.

Syntax
Com_Close( <nComPortNum>, ;
           <nComFlush>    ;  // Default: 0
         ) --> lClosed
Return

Returns .T. if the specified COM port could be closed successfully or .F. in case of an error.

Description

<nComPortNum>

COM ports 1 to 4 can be specified.

<nComFlush> not specified

Com_Close() flushes the receive queue of a COM port and closes the port.

<nComFlush> == COM_CLOSE_NOFLUSH

COM port will not be flushed before it is closed. This is useful when accessing the same COM port from multiple threads.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.