[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 INBYTE()
 Reads an 8 byte from a port
------------------------------------------------------------------------------
 Syntax

     INBYTE(<nPort|cHexPort>) --> nByte

 Argument

     <nPort|cHexPort>  Designates a port address from which a byte is
     read.  This value can be a decimal integer or hexadecimal string.

 Returns

     INBYTE() returns the byte read from the specified port; or a value of -
     1, if a parameter error occurs.

 Description

     CA-Clipper Tools always attempts to offer finished solutions at the
     highest-possible level for such standared hardware as a serial interface
     port.  However, if you read a highly specialized systems and their ports
     from CA-Clipper, use INBYTE() or INWORD().

 Note

     .  A random return value is produced for a nonexistent port or
        one that cannot be read.

 Examples

     These examples read the first port address of the first serial interface
     port.  This is only an example, since the CA-Clipper Tools contains
     special port functions.

     .  With a decimal parameter:

        ? INBYTE(1016)       // 1st Port (COM1)

     .  With a hexadecimal parameter:

        ? INBYTE("3F8")      // Also 1st Port (COM1)


See Also: INWORD() OUTBYTE()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson