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>setfieldextent()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 setFieldExtent()
 Establish the extent of the array of fields for a workarea
------------------------------------------------------------------------------
 Prototype

     ERRCODE setFieldExtent(
                             WORKAREAP wa,
                             LONG extent
                           )

 Arguments

     wa is a pointer to self.

     extent is the maximum number of fields that will be used by the
     workarea.

 Description

     setFieldExtent establishes the maximum number of fields that the
     workarea will contain.

 Default Behavior

     Assigns extent to wa->fieldExtent and allocates memory for extent number
     of fields in wa->fields

 Implementation Notes

     .  Most implementations should use the default behavior of
        setFieldExtent.  However, if your RDD allows dynamic addition of
        fields in the table, this method should set wa->fieldExtent to the
        maximum number of fields allowed for the workarea (or provide for
        resizing of the wa->fields) and allocate enough memory (in
        wa->fields) to store wa->fieldExtent number of fields.

 Files:  Header file is Rdd.api.


See Also: WORKAREA addField()

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