[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
ReadComm( nIdComm, @cBuffer )-> <nBytesRead>
------------------------------------------------------------------------------
PARAMETER:
<nIdComm> Is the numeric identifier for the opened device, or zero if
an error occured
<cBuffer> Is a string variable supplied by reference, where the
incomming bytes are stored. The lenght of the buffer also
specifies the number of bytes that are read. You can use the
SPACE( n ) function to initialize this buffer.
RETURNS:
<nBytesRead> is the number of bytes read, or zero if an error occured.
DESCRIPTION:
ReadComm() reads up to a specified number of bytes from the given
communications device. When an error occurs, the cause of the error can be
determined by using GetCommError to retrieve the error code. Since
errors can occur when no bytes are present, if the return value is zero,
the GetCommError function should be used to ensure that no error occurred.
Please see the SAMPLES\TestComm.prg file for a working sample.
SOURCE:
SOURCE\WINAPI\COMM.C
See Also:
OpenComm
WriteComm
CloseComm
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson