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>com_setio()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 COM_SETIO()
 Changes the base address for a port
------------------------------------------------------------------------------
 Syntax

     COM_SETIO(<nComPort>,<nIOPort|cIOPort>) --> lChanged

 Arguments

     <nComPort>  Designates the port (1 to 4) for which a new I/O address
     is selected.

     <nIOPort|cIOPort>  Designates a valid I/O address for the selected
     port.  The parameter can be a decimal or hexadecimal string.  For
     information about the default value, see the Introduction this chapter.

 Returns

     COM_SETIO() returns .T. if the new I/O address is successfully set.

 Description

     As is the case for other interface card settings, no true standard
     exists for I/O addresses.  This is particularly true for the COM3 and
     COM4 ports.  By using COM_SETIO(), CA-Clipper Tools software can be
     adapted to the I/O addresses of the most eccentric interface card.

 Note

     .  The function tests to see if there is a port available at the
        selected I/O address.  COM_SETIO() returns .T. or .F. accordingly.

 Examples

     .  This is an example of a setting for port 2, with the I/O
        address as a decimal:

        COM_SETIO(2, 504)               // Address 1F8h

     .  This is an example of a setting for port 4, with the I/O
        address as a hexadecimal:

        COM_SETIO(4, "1F8")             // .T.

     .  This is an example of an invalid I/O address; the value
        exceeds 1023:

        COM_SETIO(4, "10F8")            // .F.


See Also: COM_SETIRQ() COM_GETIO() COM_GETIRQ()

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