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

 Syntax
   func char fdx extern
   param value uint uIndex

 Arguments
   uIndex is the index order number.

 Return
   The name of the given index file.

 Description
   The fdx() function returns a character string which contains the name of
   the index file opened in the current alias with the order number given in
   uIndex. Indexes are ordered as they appear in the open, use, or
   set index to commands for an alias.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_fdx
   vardef
      uint n
   enddef
   open sTest index sIdxLN, sIdxB
   for n := 1 to 7 // seven indexes are allowed per database
       ? n, fdx( n )
   next
   // fdx() is used to get the name of the index for backup purposes.
   ? "When you backup this database you should also"
   ? "copy the file", fdx( 1 ), "to your backup disk."
   endproc

   proc main
   Test_fdx()
   endproc

See Also: afdx() afdxname()

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