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

Syntax:     COM_DCD(<port>)

Arguments:  <port> Will determine the interface for which the DCD will be
            tested, COM1: (1) or COM2: (2).

Returns:    A logical value.
            (.T.) corresponds to DCD active.     (MSR Bit 7=1)
            (.F.) corresponds to DCD inactive.   (MSR Bit 7=0)

Usage:      COM_DCD() provides a simple method to check the Data
            Carrier Detect (DCD) signal within a program.  DCD in
            modems will show that you have a connection.

Note:       Please use COM_MSR() if Delta-DCD is required.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * A connection will only have been established
            * when a valid DCD signal has been recognized.

            ...
            ? "Call recognized."

            DO WHILE .NOT. COM_DCD(1)   && Wait for
                                        && carrier (DCD).
            ENDDO

            ? "Carrier recognized,   Connection established."



See Also: COM_MSR()

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