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 - set index to open index files http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 set index to        Open index files
------------------------------------------------------------------------------
 Syntax
   [!sAlias] set index to [indexes]

 Arguments
   sAlias is the database to operate on.
   indexes is a list of index aliases.

 Description
   The set index to command opens index files and specifies index order.

   The extension of index files is assumed to be .fdx. There may be up to
   seven index files with an associated alias. If indexes is not
   specified, then all index files associated with the current alias are
   closed and the contents of set order to is set to 1.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_setindexto
   // There are two methods for attaching an index file to a database.
   // During the open:
   open sTest index sIdxLN, sIdxB
   close all
   // Or by opening the database and attaching the index files:
   open sTest
   set index to sIdxLn
   // The set index to command establishes which index alias is to be used.
   // Use the set alias command to change the default index file name.
   set alias sIdxLn to "stestln.fdx"
   set alias sIdxB to "stestb.fdx"
   set index to sIdxLN, sIdxB
   endproc

   proc main
   Test_setindexto()
   endproc

See Also: set alias

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