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

 Syntax
   func char fieldstring extern
   param value uint uField

 Arguments
   uField is the field number.

 Return
   The contents of the field as a character string.

 Description
   The fieldstring() function returns the contents of the field
   specified by the uField parameter in the current alias as a character
   string, no matter what the actual field type is.

   The function only considers the fields which have been declared in the
   matching dbfdef statement, i. e. the database actually might contain more
   fields.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_fieldstring
   vardef
      uint n
   enddef
   open sTest
   for n := 1 to fldcnt()
      ? n, fieldstring( n )         // show field contents
   next
   endproc

   proc main
   Test_fieldstring()
   endproc

See Also: afieldstring() arecstring()

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