DOCUMENT:Q92357 30-DEC-1999 [foxpro] TITLE :INFO: Using Independent (Nonstructural) Compound Index Files PRODUCT :Microsoft FoxPro PROD/VER:MS-DOS:2.0,2.5,2.5a; WINDOWS:2.5,2.5a,3.0,5.0,6.0 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual FoxPro for Windows, versions 3.0, 5.0, 6.0 - Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a - Microsoft FoxPro for Windows, versions 2.5, 2.5a ------------------------------------------------------------------------------- SUMMARY ======= Microsoft FoxPro supports two types of .cdx compound index files: structural and independent (nonstructural). An independent compound index file is created by specifying an OF clause in the INDEX command. Unlike the structural index file, an independent index file is not opened when the associated database is opened. To open the index, use the SET INDEX command or the INDEX clause of a USE command. MORE INFORMATION ================ The information below demonstrates how to create, open, and specify the order of an independent .cdx file with multiple tags. To create an independent index for a database, use commands such as the following. Note that the name of the .cdx file cannot be the same as the name of the database. USE OFFICES INDEX ON ONO TAG ONO OF Xoffices.cdx INDEX ON CITY TAG CITY OF Xoffices.cdx INDEX ON STATE TAG STATE OF Xoffices.cdx To open a database with an associated independent .cdx file, use code such as the following: USE OFFICES INDEX Xoffices.cdx * Set the order and list to demonstrate each tag is correct. SET ORDER TO TAG ONO OF Xoffices.cdx LIST SET ORDER TO TAG CITY OF Xoffices.cdx LIST SET ORDER TO TAG STATE Of Xoffices.cdx LIST Additional query words: VFoxWin FoxDos FoxWin idx index structural compound ====================================================================== Keywords : Technology : kbVFPsearch kbAudDeveloper kbFoxproSearch kbZNotKeyword3 kbFoxPro200DOS kbFoxPro250DOS kbFoxPro250aDOS kbFoxPro250 kbFoxPro250a kbVFP300 kbVFP500 kbVFP600 Version : MS-DOS:2.0,2.5,2.5a; WINDOWS:2.5,2.5a,3.0,5.0,6.0 Issue type : kbinfo ============================================================================= 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. Copyright Microsoft Corporation 1999.