Condividi tramite


COPY INDEXES Command

Creates compound index tags from single-entry .idx index files.

COPY INDEXES IndexFileList | ALL   [TO CDXFileName] 

Parameters

  • IndexFileList
    Specifies the single-entry .idx index files whose index expressions are used to create the tags. Separate the index file names with commas. The name assigned to each tag is the root name of the corresponding single-entry index file. If you create a tag from an index file that has the same name as an existing tag, a dialog is displayed (if SAFETY is ON) asking if you would like to overwrite the tag.
  • ALL
    Specifies to create index tags from all open single-entry index files.
  • TO CDXFileName
    Creates tags in a non-structural compound index file. Specify the name of the non-structural compound index file with CDXFileName. If a non-structural compound index file with the specified name doesn't exist, Visual FoxPro automatically creates it.

Remarks

A compound index file is an index file containing separate index entries called tags. Each tag is identified by its unique tag name. The default extension for a compound index file is .cdx.

You must first open the table and single-entry index files before using COPY INDEXES. The index expressions from the single-entry index files are used to create the new tags.

If you omit the TO clause, the new tags are added to the structural compound index file that is automatically opened with the table. If a structural compound index file doesn't exist for the table, COPY INDEXES creates one.

Use COPY TAG to create a single-entry index file from compound index file tags.

See Also

CDX( ) | COPY TAG | DELETE TAG | INDEX | TAG( ) | USE