[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
COM_DSR()
Queries the Data Set Ready (DSR) status
------------------------------------------------------------------------------
Syntax
COM_DSR(<nComPort>) --> lDSRActive
Argument
<nComPort> Designates the port (1 to 4) on which DSR is tested.
Returns
A return of .T. indicates that DSR is active (MSR Bit 6 = 1). A return
of .F. indicates that DSR is inactive (MSR Bit 6 = 0).
Description
COM_DSR() lets you check the Data Set Ready signal within a program.
Note
. If Delta-DSR is required, you must use COM_MSR().
Example
Many modems give an active DSR as soon as a connection is established:
DO WHILE .NOT. COM_DSR(1) // Wait for DSR (Call)
* ...
ENDDO
? "Call recognized."
See Also:
COM_MSR()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson