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

 Syntax
   func char afdx extern
   param       alias sDatabase, ;
         value uint  uIndex

 Arguments
   sDatabase is the alias to retrieve information about.
   uIndex is the index order number.

 Return
   The name of the index file.

 Description
   The afdx() function returns a character string which contains the name of
   the index file for sDatabase with the order number of uIndex.

   Indexes are ordered as they appear in the open, use, or set index to
   command for an alias.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_afdx
   vardef
      uint n
   enddef
   set alias sIdxLN to "stestln.fdx" // set index names
   set alias sIdxB  to "stestb.fdx"
   open sTest index sIdxLN, sIdxB    // open database with two indexes
   for n := 0 to 10                  // valid order numbers are 1 to 7 only
      ? n, afdx( sTest, n )          // print index file names
   next
   endproc

   proc main
   Test_afdx()
   endproc

See Also: adbf() afdxname() fdx()

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