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

 Syntax
   func uint fieldlen extern
   param value uint uField

 Arguments
   uField is the field number to query.

 Return
   The length of the field.

 Description
   The fieldlen() function returns the length of the specified field
   of the current alias.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_fieldlen
   vardef
      uint n
   enddef
   open sTest
   for n := 1 to fldcnt()
      ? n, fieldlen( n )         // show length of fields
   next
   endproc

   proc main
   Test_fieldlen()
   endproc

See Also: afieldlen() fielddec()

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