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 5.2 . Technical Reference - <b>dbfieldinfo</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DBFIELDINFO
 Information needed to define a column (field) to the workarea
------------------------------------------------------------------------------
 Structure

     typedef struct
     {
        BYTEP  name;
        USHORT type;
        USHORT typeExtended
        USHORT len;
        USHORT dec;
     } DBFIELDINFO;
     
     typedef DBFIELDINFO far * DBFIELDINFOP;

 Elements

     name

        Contains a pointer to the null-terminated symbol name to assign to
        the column.  When the CA-Clipper runtime encounters this symbol, it
        assumes a reference to the column defined by this structure.  The
        format of this column must conform to the symbolic representation
        rules of CA-Clipper.

     type

        Contains a literal constant indicating the column's CA-Clipper data
        type.  The numeric constants used to indicate the data types are
        defined in Extend.api and have the following meanings:

        DBFIELDINFO Field Data Types
        ---------------------------------------------------------------------
        Constant     Meaning
        ---------------------------------------------------------------------
        CHARACTER    A CA-Clipper character value
        DATE         A CA-Clipper date value
        DOUBLE       A CA-Clipper numeric value stored as an XDOUBLE by the
                     Extend System
        LOGICAL      A CA-Clipper logical value
        MEMO         A CA-Clipper memo value
        NUMERIC      A CA-Clipper numeric value stored as a LONG by the
                     Extend System
        UNDEF        The CA-Clipper NIL value
        ---------------------------------------------------------------------

     typeExtended

        Contains a numeric value indicating a user-defined column type.  This
        member is used to provide support for column types not supported by
        CA-Clipper's default database (.dbf) file format.  The intrinsically
        supported column types are Character, Numeric, Date, Logical, and
        Memo.

     len

        Contains a numeric value representing the overall length of the
        column.  RDDs supporting floating point column types should include
        the decimal point in this value.  By convention, variable length
        columns should store a zero (0) in this element.

     dec

        Contains a numeric value indicating the number of places to the right
        of the decimal point.  This element is only meaningful when the
        column is a floating point value.

 Files:  Header file is Rdd.api.

 Used by:   addField()


See Also: addField()

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