CT_INBYTE

 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

     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 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 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()

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.