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

 Syntax
   func uint afielddec 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 number of decimal positions of the field.

 Description
   The afielddec() function returns the number of decimal positions for the  
   specified field of a database.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_afielddec
   vardef
      uint n
   enddef
   open sTest
   for n := 1 to NUM_FIELDS      // check all fields
      ? n, afielddec( sTest, n )    // print field decimals
   next
   endproc

   proc main
   Test_afielddec()
   endproc

See Also: afieldlen()

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