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_scount()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 COM_SCOUNT()
 Counts the number of characters in the background sending buffer
------------------------------------------------------------------------------
 Syntax

     COM_SCOUNT(<nComPort>) --> nLength

 Argument

     <nComPort>  Designates the port (1 to 4) for which the send buffer
     length is returned.

 Returns

     COM_SCOUNT() returns the number of characters in the sending buffer of
     the selected port.

 Description

     COM_SCOUNT() determines the number of characters in one of the four
     possible sending buffers.  This is only possible when the com interface
     is interrupt controlled, meaning that data is sent in the background.

 Note

     .  If you attempt to determine the character count in a port that
        is not open, the function returns a value of -1.

 Example

     nCharacter := COM_SCOUNT(1)            // Number of characters
                                            // in Port 1


See Also: COM_OPEN() COM_SEND() COM_SFLUSH()

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