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.3 . Technical Reference - <b>createfields()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 createFields()
 Add all columns defined in an array to the work area
------------------------------------------------------------------------------
 Prototype

     ERRCODE createFields(
                                AREAP wa,
                                FARP  lpvStru
                             )

 Arguments

     wa is a pointer to self.

     lpvStru is a pointer to an array containing the column definitions
     to add.  The length of this array is equal to the number of columns to
     add.  Each element of lpvStru is a subarray containing information about
     a single column.

 Default Behavior

     createFields() is used to implement the CA-Clipper DBCREATE() function.
     It adds the columns, in the order specified by lpvStru, by calling
     addField() for each subarray.

 Implementation Notes

     .  Most implementations should use the default behavior for
        createFields().  However, if you change the createFields()
        implementation, be aware of the order imposed on adding fields
        to the work area structures.

 Files  Header file is Rdd.api.


See Also: AREA DBFIELDINFO addField() setFieldExtent()

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