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

 Syntax
   func uint afieldlen extern
   param       alias sDatabase, ;
         value uint  uField

 Arguments
   sDatabase is the database alias to retrieve information for.
   uField is the field number to query.

 Return
   The length of the field.

 Description
   The afieldlen() function returns the length of the specified field
   of a database.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_afieldlen
   vardef
      uint n
   enddef
   open sTest
   for n := 1 to NUM_FIELDS
      ? n, afieldlen( sTest, n )         // show length of fields
   next
   endproc

   proc main
   Test_afieldlen()
   endproc

See Also: afielddec()

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