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>fieldname()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 fieldName()
 Determine the name associated with a column (field) number
------------------------------------------------------------------------------
 Prototype

     ERRCODE fieldName(
                        WORKAREAP wa,
                        USHORT fieldNum,
                        BYTEP name
                      )

 Arguments

     wa is a pointer to self.

     fieldNum specifies the ordinal position of the column whose name is
     to be obtained.

     name is a pointer to a buffer used to store the field name.

 Description

     Obtains the symbolic name associated with column fieldNum.

 Default Behavior

     fieldName() copies the symbol->name from the wa->fields structure at
     fieldNum into name.  Since fieldNum is the one-based CA-Clipper fieldNum
     column (field) number, we must subtract one to correctly reference the C
     (zero-based) column array.

     Warning!  The character buffer referenced by name must be allocated
     to at least 11 bytes prior to calling this method.

 Implementation Notes

     .  If you choose to reimplement this method in your subclass, you
        must adhere to the CA-Clipper-based symbol type.  That is, symbols
        that represent fields in workareas must be 10 or fewer characters in
        length.

 Files:  Header file is Rdd.api.


See Also: WORKAREA fieldCount()

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