ChkCom Function
Returns number of characters in the reception buffer of a communication port.
Syntax
ChkCom ( portNumber As Integer )
Parameters
- portNumber
- Specify an integer value for the RS-232C port number.
- Real Part: 1 to 8
- Windows Part: 1001 to 1008
Return Values
Number of characters received (integer).
If the port cannot receive characters, the following negative values are returned to report the current port status:
- -2: Port is used by another task
- -3: Port is not open
See Also
CloseCom, OpenCom, Read, Write
ChkCom Function Example
Integer numChars
numChars = ChkCom(1)