Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>com_count()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 COM_COUNT()
 Counts the number of characters in the input buffer
------------------------------------------------------------------------------
 Syntax

     COM_COUNT(<nComPort>) --> nTotalCharacters

 Argument

     <nComPort>  Designates the port (1 to 4) for which the number of
     characters in the input buffer is determined.

 Returns

     COM_COUNT() returns the number of characters in the selected buffer.

 Description

     This function allows you to determine the number of characters in one of
     the four possible buffers.  This lets you determine how many characters
     can be read with the COM_READ() function.

 Note

     .  If an attempt is made to read the number of characters
        available in a closed port, the function returns a value of -1.

 Example

     nCharacter  :=  COM_COUNT(1)   // Number of characters-port 1

     IF nCharacter > 0
        COM_READ(1, 1)              // Read 1 character
     ENDIF


See Also: COM_OPEN() COM_READ()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson