Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Faxual II for CA-Clipper - serformat http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SerFormat
 Get/set serial data format
------------------------------------------------------------------------------
 Syntax

    SerFormat(<nPort>, [<cNewFormat>]) -> cOldFormat

 Parameters

    <nPort> is a serial port number.

    <cNewFormat> is the new serial data format string.

 Returns

    Old serial data format string.

 Description

    The data format string is a string of options (multiple options
    separated by commas) that controls the serial port's data format.
    Individual options are:

    Data Format Options
    ----------------------------------------------------------------------
    Option      Effect
    ----------------------------------------------------------------------
    "5"         Five data bits.
    "6"         Six data bits.
    "7"         Seven data bits.
    "8"       * Eight data bits.
    "N"       * No parity.
    "O"         Odd parity.
    "E"         Even parity.
    "M"         Mark parity.
    "S"         Space parity.
    "1"       * One stop bit.
    "2"         Two stop bits.
    ----------------------------------------------------------------------
    * = Default

    Setting SerFormat() has no effect on FaxSend(), which takes control of
    the port's parameters automatically.  It is only useful when you are
    talking to the serial port using SerSend() or SerReceive().

 Example

    // Set 7E1 (seven bits, even parity, one stop bit) on COM1.

    SerFormat(1, "7,E,1")

See Also:

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