Using the SET INDEX TO <Filename> Command in FoxPro

Last reviewed: June 27, 1995
Article 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 <filename> 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 <index file list> command opens the indexes.

After all desired indexes are open for the particular database, issuing a SET INDEX TO <filename> 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 <filename> 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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.