Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - fieldname() return the name of a field http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 fieldname()         Return the name of a field
------------------------------------------------------------------------------
 Declaration
   database.hdr

 Syntax
   func char fieldname extern
   param value uint uField

 Arguments
   uField is the field number.

 Return
   The name of the field.

 Description
   The fieldname() function returns the name of the field specified
   by uField in the current alias.

   The function only considers the fields which have been declared in the
   matching dbfdef statement, i. e. the database actually might contain more
   fields.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_fieldname
   vardef
      uint n
   enddef
   open sTest
   for n := 1 to fldcnt()
      ? n, fieldname( n )         // show field names
   next
   endproc

   proc main
   Test_fieldname()
   endproc

See Also: afieldname() fieldtype()

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