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

 Syntax
   func uint afldcnt extern
   param alias sDatabase

 Arguments
   sDatabase is the alias to retrieve information about.

 Return
   The number of fields in the alias.

 Description
   The afldcnt() function returns the number of fields in sDatabase.

   The function only returns the number of fields which have been declared in
   the matching dbfdef statement, i. e. the physical database file might
   contain more fields than returned by afldcnt().

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_afldcnt
   open sTest
   ? "Number of fields in database is", istr( afldcnt( sTest ) )
   endproc

   proc main
   Test_afldcnt()
   endproc

See Also: fldcnt()

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