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_dcd()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 COM_DCD()
 Queries the Data Carrier Detect (DCD) status
------------------------------------------------------------------------------
 Syntax

     COM_DCD(<nComPort>) --> lDCDActive

 Argument

     <nComPort>  Designates the port (1 to 4) on which DCD is tested.

 Returns

     A return of .T. indicates that DCD is active (MSR Bit 8 = 1).  A return
     of .F. indicates that DCD is inactive (MSR Bit 8 = 0).

 Description

     COM_DCD() lets you check the Data Carrier Detect signal within a
     program.  When you use a modem, DCD indicates that you have a remote
     connection.

 Note

     .  If Delta-DCD is required, you must use COM_MSR().

 Example

     A connection is only 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