Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_comread()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_COMREAD()


Syntax:        L_COMREAD(<expN>)


Purpose:       To read a character from the local serial communications
               port.


Arguments:     <expN> is the serial port of interest.

                0 = COM1, the first serial port
                1 = COM2, the next serial port.


Returns:       A character from the serial port (if no error).
               -1 = Syntax Error
                0 = Timed out!.


Usage:         See L_COMSTAT() for details of port status and possible
               read errors.


Examples:      * Wait for a character at a specified serial port then
               read it
               com1 = 0
               DO WHILE L_COMSTAT(com1) <> 1
               ENDDO
               character = L_COMREAD(com1)


Language:      Assembler

See Also: L_COMSTAT() L_COMWRITE() L_COM2LPT() L_LPT2COM()

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