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

 Syntax
   func uint fielddec extern
   param value uint uField

 Arguments
   uField is the field number to query.

 Return
   The number of decimal positions of the field.

 Description
   The fielddec() function returns the number of decimal positions for the
   specified field of the current alias.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

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

   proc main
   Test_fielddec()
   endproc

See Also: afielddec() fieldlen()

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