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 - fldcnt() return the number of fields in a database http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 fldcnt()            Return the number of fields in a database
------------------------------------------------------------------------------
 Declaration
   database.hdr

 Syntax
   func uint fldcnt extern

 Arguments
   None.

 Return
   The number of fields in the current alias.

 Description
   This function returns the number of fields of the open database in the
   current alias.

   The return value is equal to the number of fields which have been
   declared in the associated dbfdef statement, i.e. the database file
   actually may contain more fields.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_fldcnt
   open sTest
   ? fldcnt()            // display number of database fields
   endproc

   proc main
   Test_fldcnt()
   endproc

See Also: afldcnt()

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