Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>outbyte()</b> http://www.X-Hacker.org [<<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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson