Microsoft KB Archive/93629

{| = Using the SET INDEX TO  Command in FoxPro =
 * width="100%"|

ID: Q93629

The information in this article applies to:


 * Microsoft FoxPro for MS-DOS, versions 1.0, 1.01, 1.02, 2.0, 2.5, and 2.5a
 * Microsoft FoxPro for Windows, versions 2.5 and 2.5a

SUMMARY
When the SET INDEX TO command is issued without any additional arguments, FoxPro closes all active indexes in the work area except for structural .CDX indexes.

MORE INFORMATION
When a database has a structural .CDX file attached, opening the database opens the index file. If the database also has other types of indexes, for example, .IDX or .IDX COMPACT, the SET INDEX TO command opens the indexes.

After all desired indexes are open for the particular database, issuing a SET INDEX TO command closes all indexes opened in the current work area except the structural .CDX index.

Structural .CDX files were introduced in FoxPro version 2.0. In versions of FoxPro prior to version 2.0, the SET INDEX TO command closes all indexes open in a work area.

Additional reference words: FoxDos FoxWin 1.00 1.x 2.00 2.50 2.50a workarea KBCategory: kbprg KBSubcategory: FxprgGeneral
 * }