[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 OUTBYTE()
 Sends a byte to a port
------------------------------------------------------------------------------
 Syntax

     OUTBYTE(<nPort|cHexPort>,<nOutByte|cHexOutByte>)
         --> lSuccessful

 Arguments

     <nPort|cHexPort>  Designates a port address to which you can pass a
     byte.  This value can be a decimal integer or hexadecimal string.

     <nOutByte|cHexOutByte>  Designates the byte passed to the specified
     port.  This value can be a decimal integer or hexadecimal string.

 Returns

     OUTBYTE() returns .T. when the operation is successfully completed.  A
     return value of .F. indicates a parameter error.

 Description

     CA-Clipper Tools always attempts to offer finished solutions at the
     highest-possible level for such standard hardware as a serial interface
     port..  However, if highly specialized systems and their ports are to
     receive data from CA-Clipper, use OUTBYTE() or OUTWORD().

 Note

     .  The function does not determine if a port is available, or if
        you cannot write to it.

 Examples

     Transfer a byte to the fifth port address of the first serial interface
     port.  This is only an example, since CA-Clipper Tools has special
     serial interface port functions.

     .  With a decimal parameter:

        ? OUTBYTE(1020, 1)          // 5th port COM1, DTR On

     .  With a hexadecimal parameter:

        ? OUTBYTE("3FC", 0)         // 5th port COM1, DTR Off


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