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>field</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FIELD
 Field (column) definitions
------------------------------------------------------------------------------
 Structure

     typedef struct _FIELD_
     {
        USHORT type;
        USHORT typeExtended;
        USHORT len;
        USHORT dec;
        USHORT area;
        FARP   sym;
     
        struct _FIELD_ * next;
     
     } FIELD;
     
     typedef FIELD far * FIELDP;

 Notes

     The pointer to an array of FIELD structures is contained in the basic
     workarea structure.  Each field is created by a call to the addField()
     method for a given RDD.

 Elements

     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:

        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.  A non-zero value in this field indicates that the column type
        is not one of the intrinsically supported types.  This allows the RDD
        to support column types that are not intrinsically understood by
        CA-Clipper.  Extended types must be translated into CA-Clipper types
        by the RDD and typeExtended values are defined by the RDD.

     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.

     area

        Contains a numeric value indicating the workarea in which the field
        resides.  The CA-Clipper runtime system uses this field to reference
        the appropriate workarea.

     sym

        Contains a character data type value representing the column and
        workarea to the runtime system.  The CA-Clipper runtime system will
        interpret runtime requests (get or set actions) to this symbol as a
        call to the your driver.

     next

        Reserved for possible future use.

 Files:  Header file is Rdd.api.

 Used by:   WORKAREA


See Also: WORKAREA

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