[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 OUTWORD()
 Sends a 16-bit word to a port
------------------------------------------------------------------------------
 Syntax

     OUTWORD(<nPort|<cHexPort>,<nOutWord|cHexOutWord>)
         --> lSuccessful

 Arguments

     <nPort|HexPort>  Designates a port address to which a word with a 16-
     bit value is passed.  This value can be a decimal integer or hexadecimal
     (sedecimal) string.  The maximum is 65520 ("FFF0" Hex).

     <nOutWord|cHexOutWord>  Designates the word passed to the specified
     port.  This value can be designated as a decimal integer or hexadecimal
     (sedecimal) string.  The maximum is 65536 ("FFFF" Hex).

 Returns

     OUTWORD() 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 the 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 open or if you
        cannot write to it.

 Examples

     Output to a 16-bit port.

     .  With a decimal parameter:

        ? OUTWORD(512, 32)          // Write word to an additional device

     .  With a hexadecimal parameter:

        ? OUTWORD("200", "20")      // Same port, same value


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